prober

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("prober",
	fx.Provide(
		fx.Private,
		func(cfg config.Config) proberunner.RunnerOpts {
			return proberunner.RunnerOpts{
				PollInterval: cfg.ProbePollSchedule,
				Concurrency:  cfg.ProbeConcurrency,
				ProbeTimeout: cfg.ProbeTimeout,
			}
		},
		func(cfg config.Config) portprober.Opts {
			return portprober.Opts{
				Offsets: cfg.DiscoveryRevivalPorts,
			}
		},
	),
	fx.Provide(
		portprober.New,
		detailsprober.New,
	),
	fx.Provide(
		fx.Private,
		proberunner.New,
	),
	fx.Provide(
		func(portProber portprober.PortProber, detailsProber detailsprober.DetailsProber) probers.ForGoal {
			return probers.ForGoal{
				probe.GoalPort:    portProber,
				probe.GoalDetails: detailsProber,
			}
		},
	),
	fx.Provide(New),
)

Functions

func Run

func Run(
	stop chan struct{},
	stopped chan struct{},
	logger *zerolog.Logger,
	wp *proberunner.Runner,
)

Types

type Prober

type Prober struct{}

func New added in v0.19.0

func New(
	lc fx.Lifecycle,
	wp *proberunner.Runner,
	logger *zerolog.Logger,
) *Prober

Jump to

Keyboard shortcuts

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