Documentation ¶
Overview ¶
Package cache implements the external provider interface providing a cache for the encapsulated provider.
Index ¶
Constants ¶
View Source
const (
// MetricsSubsystem groups metrics coming from cache provider.
MetricsSubsystem = "external_provider_cache"
)
Variables ¶
This section is empty.
Functions ¶
func NewCacheProvider ¶
func NewCacheProvider(options ProviderOptions) (provider.ExternalMetricsProvider, error)
NewCacheProvider is the constructor for the cache provider.
Types ¶
type ProviderOptions ¶
type ProviderOptions struct { ExternalProvider provider.ExternalMetricsProvider CacheTTLSeconds int64 RegisterFunc func(metrics.Registerable) error }
ProviderOptions holds the configOptions of the provider.
Click to show internal directories.
Click to hide internal directories.