health

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcChecker

func NewGrpcChecker(opts ...option) *grpcChecker

func NewRestChecker

func NewRestChecker(version, service string, opts ...option) *restChecker

func WithCheck

func WithCheck(name string, check check) option

func WithInterval

func WithInterval(interval time.Duration) option

func WithTimeout

func WithTimeout(timeout time.Duration) option

Types

type Status

type Status uint32
const (
	// Healthy is returned when the health check was successful
	Healthy Status = 0

	// Unhealthy is returned when the health check was unsuccessful
	Unhealthy Status = 1
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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