probe

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

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

Probe is a periodic checker.

func NewProbe

func NewProbe(name string, period time.Duration, ch checker.Checker) *Probe

NewProbe with period and checker.

func (*Probe) Start

func (p *Probe) Start() <-chan *Tick

Start the probe.

func (*Probe) Stop

func (p *Probe) Stop()

Stop the probe.

type Tick

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

Tick defines a tick in time for a probe.

func NewTick

func NewTick(name string, err error) *Tick

NewTick with name and error.

func (*Tick) Error

func (t *Tick) Error() error

Error of the probe tick.

func (*Tick) Name

func (t *Tick) Name() string

Name of the probe tick.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳