Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Registrar = &StrategyRegistrar{ Strategies: make(map[time.Duration][]Strategy), }
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy interface { Options() Options Run(ctx context.Context, dataCh chan<- []*pb.MetricsPayload_Metric) error }
Strategy provides a common interface for different monitoring tasks.
type StrategyRegistrar ¶
func (*StrategyRegistrar) RegisterStrategy ¶
func (r *StrategyRegistrar) RegisterStrategy(strategy Strategy)
Click to show internal directories.
Click to hide internal directories.