nodeprobe

package
v0.5.5-jatov2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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 Prober

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

func NewProber

func NewProber(logger *zap.Logger, nodes ...StatusChecker) *Prober

func (*Prober) IsReady

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

func (*Prober) Run

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

func (*Prober) SetUnreadyHandler

func (p *Prober) SetUnreadyHandler(h func())

func (*Prober) Start

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

func (*Prober) Wait

func (p *Prober) Wait()

type StatusChecker

type StatusChecker interface {
	IsReady(ctx context.Context) (bool, error)
}

Jump to

Keyboard shortcuts

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