nodeprobe

package
v1.0.1-hotfix Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	Healthy(ctx context.Context) error
}

type Prober

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

func NewProber

func NewProber(logger *zap.Logger, unhealthyHandler func(), nodes map[string]Node) *Prober

func (*Prober) AddNode

func (p *Prober) AddNode(name string, node Node)

func (*Prober) Healthy

func (p *Prober) Healthy(context.Context) (bool, error)

func (*Prober) Run

func (p *Prober) Run(ctx context.Context) error

func (*Prober) Start

func (p *Prober) Start(ctx context.Context)

func (*Prober) Wait

func (p *Prober) Wait()

Jump to

Keyboard shortcuts

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