Versions in this module Expand all Collapse all v0 v0.1.1 Oct 29, 2017 Changes in this version + func UseCustomeDNS(dns []string) v0.1.0 Jun 28, 2017 Changes in this version + func CheckURI(uri string) (schema, host string, port int, matched bool) + func GetIP(hostname string) string + type HTTPing struct + Method string + func NewHTTPing(method string) *HTTPing + func (ping *HTTPing) Result() *Result + func (ping *HTTPing) SetTarget(target *Target) + func (ping *HTTPing) Start() <-chan struct{} + func (ping *HTTPing) Stop() + type Ping interface + Counter func() int + Host func() string + Port func() int + Protocol func() Protocol + Result func() Result + Start func() <-chan struct{} + Stop func() + type Pinger interface + Result func() *Result + SetTarget func(target *Target) + Start func() <-chan struct{} + Stop func() + type Protocol int + const HTTP + const HTTPS + const TCP + func NewProtocol(protocol string) (Protocol, error) + func (protocol Protocol) String() string + type Result struct + Counter int + MaxDuration time.Duration + MinDuration time.Duration + SuccessCounter int + Target *Target + TotalDuration time.Duration + func (result Result) Avg() time.Duration + func (result Result) Failed() int + func (result Result) String() string + type TCPing struct + func NewTCPing() *TCPing + func (tcping *TCPing) SetTarget(target *Target) + func (tcping *TCPing) Stop() + func (tcping TCPing) Result() *Result + func (tcping TCPing) Start() <-chan struct{} + type Target struct + Counter int + Host string + Interval time.Duration + Port int + Protocol Protocol + Timeout time.Duration + func (target Target) String() string