nodeprobe

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 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) CheckBeaconNodeHealth added in v1.2.2

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

TODO: string constants are error-prone. Add a method to clients that returns their name or solve this in another way

func (*Prober) CheckEventSyncerHealth added in v1.2.2

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

func (*Prober) CheckExecutionNodeHealth added in v1.2.2

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

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