Versions in this module Expand all Collapse all v0 v0.3.1 Jun 20, 2026 v0.3.0 Jun 20, 2026 Changes in this version + const DefaultHTTPSPort + const IPv4ProtocolICMP + const IPv6ProtocolICMP + func DNSLookup(addr string) (*net.IPAddr, time.Duration, error) + func DNSLookupContext(ctx context.Context, addr string) (*net.IPAddr, time.Duration, error) + func DNSLookupFrom(addr string, server string) (*net.IPAddr, time.Duration, error) + func DNSLookupFromContext(ctx context.Context, addr string, server string) (*net.IPAddr, time.Duration, error) + func Ping(addr string, seq int) (*net.IPAddr, time.Duration, error) + func PingContext(ctx context.Context, addr string, seq int) (*net.IPAddr, time.Duration, error) + type CertData struct + NotAfter time.Time + func (CertData) Kind() string + type CertExpiringWarning struct + NotAfter time.Time + Remaining time.Duration + func (w *CertExpiringWarning) Error() string + type CheckData interface + Kind func() string + type Checker interface + Check func(ctx context.Context) Result + type DNS struct + ADDR string + Duration time.Duration + End time.Time + Start time.Time + Timeout time.Duration + func (d *DNS) Check(ctx context.Context) Result + type DNSData struct + IP *net.IPAddr + func (DNSData) Kind() string + type HTTP struct + Body []byte + Close bool + ContentLength int64 + Header map[string][]string + Method string + Proto string + ProtoMajor int + ProtoMinor int + Status string + StatusCode int + Timeout Timeout + Trailer map[string][]string + TransferEncoding []string + URL string + Uncompressed bool + func (hsr *HTTP) Check(ctx context.Context) Result + func (hsr *HTTP) HTTPStatus() error + func (hsr *HTTP) HTTPStatusContext(ctx context.Context) error + type HTTPS struct + Duration time.Duration + End time.Time + Host string + InsecureSkipVerify bool + Port string + Start time.Time + Timeout time.Duration + WarnIfExpiringWithin time.Duration + func (hs *HTTPS) Check(ctx context.Context) Result + func (hs *HTTPS) HTTPSCheck(ctx context.Context) (bool, time.Time, error) + type HTTPTrace struct + Connect time.Duration + DNS time.Duration + GotFirstResponseByte time.Duration + Method string + TLSHandshake time.Duration + Total time.Duration + URL string + func (ht *HTTPTrace) Check(ctx context.Context) Result + func (ht *HTTPTrace) Trace() error + func (ht *HTTPTrace) TraceContext(ctx context.Context) error + type PingCheck struct + Addr string + Seq int + func (pc *PingCheck) Check(ctx context.Context) Result + type PingData struct + IP *net.IPAddr + func (PingData) Kind() string + type Result struct + Data CheckData + Duration time.Duration + Error error + OK bool + Warning error + type TCP struct + CertFile string + Duration time.Duration + End time.Time + PrivateKeyFile string + Start time.Time + Timeout time.Duration + URL *url.URL + func (tr *TCP) Check(ctx context.Context) Result + func (tr *TCP) TCPPortCheck(ctx context.Context) (bool, error) + func (tr *TCP) TLSPortCheck(ctx context.Context) (bool, error) + type Time struct + Duration time.Duration + End time.Time + Start time.Time + type Timeout time.Duration + type WebSocket struct + Duration time.Duration + End time.Time + Start time.Time + Timeout time.Duration + URL string + func (ws *WebSocket) Check(ctx context.Context) Result + func (ws *WebSocket) WSCheck(ctx context.Context) error v0.2.0 Jun 19, 2026 v0.1.0 Jun 19, 2026