healthcheck

package
v0.0.0-...-514d410 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor interface {
	GetHealthStatus() server.HealthStatus
	Shutdown()
}

func NewDefaultMonitor

func NewDefaultMonitor(address server.Address, port server.Port, option Option) Monitor

func NewNopMonitor

func NewNopMonitor() Monitor

type Option

type Option struct {
	Interval time.Duration
	Fn       healthcheck.HealthcheckFn
}

func (Option) Validate

func (opt Option) Validate() error

Jump to

Keyboard shortcuts

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