healthcheck

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Check(ctx context.Context) error
}

type CheckerFunc

type CheckerFunc func(ctx context.Context) error

func (CheckerFunc) Check

func (f CheckerFunc) Check(ctx context.Context) error

type HealthChecker

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

func NewHealthChecker

func NewHealthChecker(serverType string) *HealthChecker

func (*HealthChecker) AddHealthCheck

func (h *HealthChecker) AddHealthCheck(name string, f Checker)

func (*HealthChecker) LivenessHandler

func (h *HealthChecker) LivenessHandler() http.Handler

func (*HealthChecker) ReadinessHandler

func (h *HealthChecker) ReadinessHandler() http.Handler

func (*HealthChecker) RegisterShutdownFunction

func (h *HealthChecker) RegisterShutdownFunction(f ShutDownFunc)

func (*HealthChecker) WaitForGracefulShutdown

func (h *HealthChecker) WaitForGracefulShutdown()

type ShutDownFunc

type ShutDownFunc func(ctx context.Context) error

Jump to

Keyboard shortcuts

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