health

package
v0.0.10-dev Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	DoHealthCheck() (Health, error)
}

type Health

type Health interface {
	HealthStatus() Status
	Details() map[string]any
}

func Down

func Down(options ...Option) Health

func Of

func Of(status Status, options ...Option) Health

func OutOfService

func OutOfService(options ...Option) Health

func Unknown

func Unknown(options ...Option) Health

func Up

func Up(options ...Option) Health

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDetails

func WithDetails(details map[string]any) Option

type Status

type Status int
const (
	StatusUnknown Status = iota + 1
	StatusUp
	StatusDown
	StatusOutOfService
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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