Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TTLSingletonProvider ¶
type TTLSingletonProvider struct { singleton.SingletonProvider TTL time.Duration // Objects older than this are transparently dropped }
func NewProvider ¶
func NewProvider(d time.Duration, p singleton.SingletonProvider) TTLSingletonProvider
func (TTLSingletonProvider) ReadSingleton ¶
func (sp TTLSingletonProvider) ReadSingleton(ctx context.Context, name string, f singleton.NewReaderFunc, ptr interface{}) error
func (TTLSingletonProvider) WriteSingleton ¶
func (sp TTLSingletonProvider) WriteSingleton(ctx context.Context, name string, f singleton.NewWriteCloserFunc, ptr interface{}) error
Click to show internal directories.
Click to hide internal directories.