health

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 7 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 HealthCheckMonitor

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

func NewHealthCheckMonitor

func NewHealthCheckMonitor(checkType string, intervalS int, timeoutS int, maxFailedTimes int, addr string, url string,
	statusNormalFn func(), statusFailedFn func()) *HealthCheckMonitor

func (*HealthCheckMonitor) SetLogger

func (monitor *HealthCheckMonitor) SetLogger(l log.Logger)

func (*HealthCheckMonitor) Start

func (monitor *HealthCheckMonitor) Start()

func (*HealthCheckMonitor) Stop

func (monitor *HealthCheckMonitor) Stop()

Jump to

Keyboard shortcuts

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