health

package
v0.38.23-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEventTypeAlreadyRegistered = errors.New("event type already registered")

Functions

This section is empty.

Types

type DefaultHealthEventManager

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

func NewDefaultHealthEventManager

func NewDefaultHealthEventManager(listeners ...ReadinessProbe) (*DefaultHealthEventManager, error)

func (*DefaultHealthEventManager) Dispatch

func (*DefaultHealthEventManager) HealthxReadyCheckers

func (h *DefaultHealthEventManager) HealthxReadyCheckers() healthx.ReadyCheckers

func (*DefaultHealthEventManager) Watch

type EventManager

type EventManager interface {
	Dispatch(event ReadinessProbeEvent)
	Watch(ctx context.Context)
	HealthxReadyCheckers() healthx.ReadyCheckers
}

type ReadinessProbe

type ReadinessProbe interface {
	ID() string
	Validate() error

	EventTypes() []ReadinessProbeEvent
	EventsReceiver(event ReadinessProbeEvent)
}

type ReadinessProbeEvent

type ReadinessProbeEvent interface {
	ReadinessProbeListenerID() string
}

Jump to

Keyboard shortcuts

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