health

package
v0.37.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHealthCheckType = errors.New("error health check type")
)

Functions

This section is empty.

Types

type Monitor added in v0.36.3

type Monitor struct {
	// contains filtered or unexported fields
}

func NewMonitor added in v0.36.3

func NewMonitor(ctx context.Context, checkType string,
	intervalS int, timeoutS int, maxFailedTimes int,
	addr string, url string,
	statusNormalFn func(), statusFailedFn func()) *Monitor

func (*Monitor) Start added in v0.36.3

func (monitor *Monitor) Start()

func (*Monitor) Stop added in v0.36.3

func (monitor *Monitor) Stop()

Jump to

Keyboard shortcuts

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