Documentation ¶
Overview ¶
Package strategy provides basic interfaces for routing to availble plugins and caching metric data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCacheEntryDoesNotExist = errors.New("cache entry does not exist")
)
View Source
var (
ErrorCouldNotSelect = errors.New("could not select a plugin (round robin strategy)")
)
View Source
var GlobalCacheExpiration time.Duration
GlobalCacheExpiration the default time limit for which a cache entry is valid. A plugin can override the GlobalCacheExpiration (default).
Functions ¶
Types ¶
type RoutingAndCaching ¶
type RoutingAndCaching interface { Select([]SelectablePlugin) (SelectablePlugin, error) CheckCache(mts []core.Metric) ([]core.Metric, []core.Metric) UpdateCache(mts []core.Metric) CacheHits(string, int) (uint64, error) CacheMisses(string, int) (uint64, error) AllCacheHits() uint64 AllCacheMisses() uint64 CacheTTL() time.Duration String() string }
Click to show internal directories.
Click to hide internal directories.