healthcheck

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientHealthChecker

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

ClientHealthChecker contains the port and check function callback

func NewClientHealthChecker

func NewClientHealthChecker(port string, f func() error) *ClientHealthChecker

NewClientHealthChecker function will return new ClientHealthChecker struct with specified port and checkFunction

func (*ClientHealthChecker) StartProbes

func (s *ClientHealthChecker) StartProbes()

StartProbes will initilize http endpoints for liviness (/live) and readiness (/ready) checks

Jump to

Keyboard shortcuts

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