Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Series ¶
Series is a single time series with descriptor, labels and instances, but without values
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service retrieves and caches series
func NewSeriesService ¶
NewSeriesService creates a new resource service
func (*Service) GetSeries ¶
GetSeries retrieves multiple series and caches them this will be called from different goroutines (each QueryData call runs in a new goroutine) let's keep it simple and stupid for now with a lock if this isn't sufficient anymore, a solution like https://notes.shichao.io/gopl/ch9/#example-concurrent-non-blocking-cache will be required - a concurrent non-blocking memoizing cache, where the memoize function processes multiple keys
func (*Service) RefreshInstances ¶
RefreshInstances refreshes instances of a series