http

package
v0.0.0-...-20e63b6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTargetsUpdateInterval = 1 * time.Minute

DefaultTargetsUpdateInterval defines default frequency for target updates. Actual targets update interval is: max(DefaultTargetsUpdateInterval, probe_interval)

Functions

This section is empty.

Types

type Probe

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

Probe holds aggregate information about all probe runs, per-target.

func (*Probe) GetName

func (p *Probe) GetName() string

func (*Probe) GetOpts

func (p *Probe) GetOpts() *options.Options

func (*Probe) GetType

func (p *Probe) GetType() string

func (*Probe) Init

func (p *Probe) Init(name string, opts *options.Options) error

Init initializes the probe with the given params.

func (*Probe) Logger

func (p *Probe) Logger() *logrus.Entry

func (*Probe) Run

func (p *Probe) Run(ctx context.Context, target endpoint.Endpoint, em *metrics.EventMetrics) (success bool, err error)

func (*Probe) Start

func (p *Probe) Start(ctx context.Context, dataChan chan *metrics.EventMetrics)

Start starts and runs the probe indefinitely.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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