healthchecks

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r interface{}, collectors ...func() (statKey string, stats interface{})) error

Register both ping and healthcheck endpoints

func RegisterHealthcheck

func RegisterHealthcheck(r interface{}, collectors ...func() (statKey string, stats interface{})) error

RegisterHealthcheck registers healthcheck endpoint

func RegisterPing

func RegisterPing(r interface{}) error

RegisterPing registers ping endpoint

func ServeHealthcheck

func ServeHealthcheck(collectors ...func() (statKey string, stats interface{})) func() interface{}

ServeHealthcheck serves healthcheck

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL