healthcheck

package
v0.0.0-...-5e39469 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateUnknown   = iota
	StateStarting  = iota
	StateUnhealthy = iota
	StateHealthy   = iota
)

Variables

This section is empty.

Functions

func Check

func Check() bool

func Initialize

func Initialize(component string, state int)

func MarkStarted

func MarkStarted(id, name string)

func NameToValue

func NameToValue(state string) int

func SetState

func SetState(component string, state int)

func State

func State() string

func WaitUntilReady

func WaitUntilReady(componentName string, needsHealthyState bool)

Types

type Server

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

func Serve

func Serve() (*Server, error)

func (*Server) Close

func (s *Server) Close() error

Jump to

Keyboard shortcuts

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