healthcheck

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	IsStarting() bool           //checker is running
	SetHost(host string)        //setting ip/host for checker
	IsHealthy() bool            //get if check is healthy
	TotalTicks() int            //total check ticks
	ConsecutiveFailure() int    //get consecutive failure times
	Failure() int               //total failures
	LastFailureTime() time.Time //last Failure
	LastCheckTime() time.Time   //last check tick
	Start()                     //start checker
	Stop()                      //stop checker
	ReCheck() bool              //ask checker to check
	Pause() error               //pause check
	Resume() error              //arouse checker
	Name() string               //checker name
	Relation() string           //checker relative to container
}

Checker health check interface

type TimeMechanism

type TimeMechanism struct {
	DelaySeconds        int // Amount of time to wait until starting the health checks.
	IntervalSeconds     int // Interval between health checks.
	TimeoutSeconds      int // Amount of time to wait for the health check to complete.
	ConsecutiveFailures int // Number of consecutive failures until signaling kill task.
	GracePeriodSeconds  int // Amount of time to allow failed health checks since launch.
}

TimeMechanism item for checker

Jump to

Keyboard shortcuts

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