health

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const HealthCheckKey = `group:"_healthCheck"`

Variables

This section is empty.

Functions

func NewNamedCheck

func NewNamedCheck(name string, check Check) *simpleNamedCheck

func ProvideHealthCheck

func ProvideHealthCheck(provider interface{}) fx.Option

Types

type Check

type Check interface {
	Do(ctx context.Context) error
}

type CheckFn

type CheckFn func(ctx context.Context) error

func (CheckFn) Do

func (fn CheckFn) Do(ctx context.Context) error

type NamedCheck

type NamedCheck interface {
	Check
	Name() string
}

Jump to

Keyboard shortcuts

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