Versions in this module Expand all Collapse all v0 v0.0.1 Jul 30, 2019 Changes in this version + var ErrNoData = errors.New("no data yet") + type Check func() error + func Async(check Check, interval time.Duration) Check + func AsyncWithContext(ctx context.Context, check Check, interval time.Duration) Check + func DNSResolveCheck(host string, timeout time.Duration) Check + func DatabasePingCheck(database *sql.DB, timeout time.Duration) Check + func GoroutineCountCheck(threshold int) Check + func HTTPGetCheck(url string, timeout time.Duration) Check + func TCPDialCheck(addr string, timeout time.Duration) Check + func Timeout(check Check, timeout time.Duration) Check + type Handler interface + AddLivenessCheck func(name string, check Check) + AddReadinessCheck func(name string, check Check) + LiveEndpoint func(http.ResponseWriter, *http.Request) + ReadyEndpoint func(http.ResponseWriter, *http.Request) + func NewHandler() Handler + func NewMetricsHandler(registry prometheus.Registerer, namespace string) Handler