Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseCustomeDNS ¶ added in v0.1.1
func UseCustomeDNS(dns []string)
UseCustomeDNS will set the dns to default DNS resolver for global
Types ¶
type HTTPing ¶
type HTTPing struct {
Method string
// contains filtered or unexported fields
}
HTTPing ...
type Ping ¶
type Ping interface {
Start() <-chan struct{}
Host() string
Port() int
Protocol() Protocol
Counter() int
Stop()
Result() Result
}
Ping is a ping interface
type Protocol ¶
type Protocol int
Protocol ...
func NewProtocol ¶
NewProtocol convert protocol stirng to Protocol
type Result ¶
type Result struct {
Counter int
SuccessCounter int
Target *Target
MinDuration time.Duration
MaxDuration time.Duration
TotalDuration time.Duration
}
Result ...
Click to show internal directories.
Click to hide internal directories.