health

package
v0.1.93 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusUp   = "UP"
	StatusDown = "DOWN"

	ServiceDatastore = "datastore"
	ServiceBroker    = "broker"
	ServiceRuntime   = "runtime"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

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

func NewHealthCheck

func NewHealthCheck() *HealthCheck

func (*HealthCheck) Do

func (*HealthCheck) WithIndicator

func (b *HealthCheck) WithIndicator(name string, ind HealthIndicator) *HealthCheck

type HealthCheckResult

type HealthCheckResult struct {
	Status  string `json:"status"`
	Version string `json:"version"`
}

type HealthIndicator

type HealthIndicator func(ctx context.Context) error

Jump to

Keyboard shortcuts

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