health

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

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

func New

func New(ctx context.Context, haHandler func(m ha.Member)) *HealthChecker

func (HealthChecker) Follow added in v0.2.0

func (m HealthChecker) Follow(ctx context.Context, _ string) error

func (HealthChecker) Lead added in v0.2.0

func (m HealthChecker) Lead(ctx context.Context, _ func(_ time.Duration) error) error

func (*HealthChecker) ServeHTTP

func (hc *HealthChecker) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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