health

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveChecker

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

ActiveChecker periodically probes each backend and flips its alive bit.

func NewActiveChecker

func NewActiveChecker(cfg config.ActiveHealthConfig, pool *backend.Pool, logger *slog.Logger, recorder *metrics.Recorder) *ActiveChecker

func (*ActiveChecker) Start

func (c *ActiveChecker) Start(ctx context.Context)

func (*ActiveChecker) Wait

func (c *ActiveChecker) Wait()

type Checker

type Checker interface {
	Start(ctx context.Context)
	Wait()
}

Checker starts background probes against a pool and flips backend liveness.

Jump to

Keyboard shortcuts

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