health

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicChecker

type BasicChecker struct{}

BasicChecker supports a simple health check, which always returns nil

func (*BasicChecker) Check

func (h *BasicChecker) Check() error

Check always returns nil

type Checker

type Checker interface {
	Check() error
}

Checker includes methods necessary for managing and determining the health of the system

type UnhealthySystemError

type UnhealthySystemError struct {
	Err error
}

UnhealthySystemError represents an error returned if the system is not healthy. This error can be returned from a health manager to indicate that the response code returned should be a `503`

func (*UnhealthySystemError) Error

func (e *UnhealthySystemError) Error() string

Error returns an error string

func (*UnhealthySystemError) Unwrap

func (e *UnhealthySystemError) Unwrap() error

Unwrap returns the underlying error

Jump to

Keyboard shortcuts

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