proberunner

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedGoal = errors.New("no associated prober for goal")

Functions

This section is empty.

Types

type Runner

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

func New

func New(
	opts RunnerOpts,
	probeRepo repositories.ProbeRepository,
	uc probeserver.UseCase,
	probers probers.ForGoal,
	metrics *metrics.Collector,
	logger *zerolog.Logger,
) *Runner

func (*Runner) Available

func (r *Runner) Available() int

func (*Runner) Busy

func (r *Runner) Busy() int

func (*Runner) Start

func (r *Runner) Start(ctx context.Context)

type RunnerOpts

type RunnerOpts struct {
	PollInterval time.Duration
	Concurrency  int
	ProbeTimeout time.Duration
}

Jump to

Keyboard shortcuts

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