Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsuccessful = errors.New("unsuccessful health check")
Functions ¶
func Register ¶
func Register(opts ...HealthCheckOptions)
func Unregister ¶
func Unregister()
Types ¶
type HealthCheckOptions ¶
type HealthCheckOptions func(c *serverCheckers)
func WithChecker ¶
func WithChecker(chkr HealthChecker) HealthCheckOptions
func WithGRPCPort ¶
func WithGRPCPort(port uint16) HealthCheckOptions
func WithGRPCServer ¶
func WithGRPCServer(srv *grpc.Server) HealthCheckOptions
func WithHTTPPort ¶
func WithHTTPPort(port uint16) HealthCheckOptions
type HealthChecker ¶
Click to show internal directories.
Click to hide internal directories.