healthcheck

package
v0.0.0-...-86597e6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 9 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(pinger IPing, addr string) *HealthChecker

func (*HealthChecker) ServeHTTP

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

func (*HealthChecker) Start

func (checker *HealthChecker) Start(ctx context.Context) error

type IPing

type IPing interface {
	PingContext(ctx context.Context) error
}

func NewNoop

func NewNoop() IPing

Jump to

Keyboard shortcuts

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