gatherers

package
v0.0.0-...-f366621 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomPeriodGatherer

type CustomPeriodGatherer interface {
	Interface

	// ShouldBeProcessedNow returns true when it's time to process the gatherer
	// is responsible for tracking the time itself
	ShouldBeProcessedNow() bool
	// UpdateLastProcessingTime is called when the gatherer is about to be processed,
	// so that it can update its last processed time for example.
	UpdateLastProcessingTime()
}

CustomPeriodGatherer gatherers implementing this interface may not get to each archive and their period can be different from interval in the config(equal or higher, but never lower)

type GatheringClosure

type GatheringClosure struct {
	Run func(context.Context) ([]record.Record, []error)
}

GatheringClosure is a struct containing a closure each gatherer returns

type Interface

type Interface interface {
	// GetName returns the name of the gatherer
	GetName() string

	// GetGatheringFunctions returns all the gathering function implemented by current gatherer
	GetGatheringFunctions(context.Context) (map[string]GatheringClosure, error)
}

Interface is an interface for gathering types

Directories

Path Synopsis
nolint: dupl
nolint: dupl
Package conditional provides conditional gatherer which runs gatherings based on the rules and only if the provided conditions are satisfied.
Package conditional provides conditional gatherer which runs gatherings based on the rules and only if the provided conditions are satisfied.

Jump to

Keyboard shortcuts

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