Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Get(key string) string Put(key string, value string) error IsEmpty() bool Initialize() error }
Cache interface for a string to string cache
func NewAutoRefreshCache ¶
func NewAutoRefreshCache( extSource ServiceAliasMappingExternalSource, storage ServiceAliasMappingStorage, logger *zap.Logger, readRefreshInterval, saveRefreshInterval time.Duration, ) Cache
NewAutoRefreshCache returns an autoRefreshCache
type ServiceAliasMappingExternalSource ¶
ServiceAliasMappingExternalSource interface to load service alias mapping from an external source
Click to show internal directories.
Click to hide internal directories.