health

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthWatcherService

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

func NewHealthWatcherService

func NewHealthWatcherService(agentConfig *config.Config) *HealthWatcherService

func (*HealthWatcherService) AddHealthWatcher

func (hw *HealthWatcherService) AddHealthWatcher(instances []*mpi.Instance)

func (*HealthWatcherService) DeleteHealthWatcher

func (hw *HealthWatcherService) DeleteHealthWatcher(instances []*mpi.Instance)

func (*HealthWatcherService) InstancesHealth added in v3.1.0

func (hw *HealthWatcherService) InstancesHealth() []*mpi.InstanceHealth

func (*HealthWatcherService) UpdateHealthWatcher

func (hw *HealthWatcherService) UpdateHealthWatcher(instances []*mpi.Instance)

func (*HealthWatcherService) Watch

func (hw *HealthWatcherService) Watch(ctx context.Context, ch chan<- InstanceHealthMessage)

type InstanceHealthMessage

type InstanceHealthMessage struct {
	CorrelationID  slog.Attr
	InstanceHealth []*mpi.InstanceHealth
}

type NginxHealthWatcher

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

func NewNginxHealthWatcher

func NewNginxHealthWatcher() *NginxHealthWatcher

func (*NginxHealthWatcher) Health

func (nhw *NginxHealthWatcher) Health(ctx context.Context, instance *mpi.Instance) (*mpi.InstanceHealth, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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