healthcheck

package
v0.0.0-...-3a7b102 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	StatusPass = "pass"
	StatusFail = "fail"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthcheckFunc

type HealthcheckFunc func(context.Context) error

type Manager

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

func NewHealthManager

func NewHealthManager(logger log.Logger, listenPort string) Manager

func (*Manager) Register

func (m *Manager) Register(name string, toCheck HealthcheckFunc)

func (*Manager) RunHealthcheckEndpoint

func (m *Manager) RunHealthcheckEndpoint() error

type Result

type Result struct {
	Status      string
	FailDetails map[string]any
}

Jump to

Keyboard shortcuts

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