atlas

package
v0.0.0-...-da44132 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCache

func InitCache(ttl, cleanup time.Duration)

InitCache initializes the cache

Types

type Strategy

type Strategy interface {
	// MeasurementResults gets results for a list of measurements
	MeasurementResults(ctx context.Context, ids []string) ([]*exporter.Measurement, error)
}

Strategy defines an strategy to retrieve data for generating metrics

func NewRequestStrategy

func NewRequestStrategy(cfg *config.Config, workers uint) Strategy

NewRequestStrategy returns an strategy to retrieve data from Atlas API using requests

func NewStreamingStrategy

func NewStreamingStrategy(ctx context.Context, cfg *config.Config, bufferSize uint, defaultTimeout time.Duration) Strategy

NewStreamingStrategy returns an strategy using the RIPE Atlas Streaming API

Jump to

Keyboard shortcuts

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