health

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func NewHealthIndicator

func NewHealthIndicator(compList []Indicator) *Builder

func (*Builder) Build

func (builder *Builder) Build() map[string]interface{}

type ComponentStatus

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

func Down

func Down(name string) ComponentStatus

func Up

func Up(name string) ComponentStatus

func (ComponentStatus) Build

func (cs ComponentStatus) Build() map[string]interface{}

func (ComponentStatus) GetName

func (cs ComponentStatus) GetName() string

func (ComponentStatus) GetStatus

func (cs ComponentStatus) GetStatus() string

func (ComponentStatus) SetStatus

func (cs ComponentStatus) SetStatus(status string)

func (ComponentStatus) WithDetail

func (cs ComponentStatus) WithDetail(key string, detail interface{}) ComponentStatus

type DiskHealthIndicator

type DiskHealthIndicator struct{}

func NewDiskHealthIndicator

func NewDiskHealthIndicator() *DiskHealthIndicator

func (*DiskHealthIndicator) Health

type Indicator

type Indicator interface {
	Health() ComponentStatus
}

Jump to

Keyboard shortcuts

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