Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemorySingletonProvider ¶
type MemorySingletonProvider struct { // This map stores pointers, and we follow those pointers during read operations Map map[string]interface{} AlwaysFail bool }
func NewProvider ¶
func NewProvider() MemorySingletonProvider
func (MemorySingletonProvider) ReadSingleton ¶
func (sp MemorySingletonProvider) ReadSingleton(ctx context.Context, name string, f singleton.NewReaderFunc, ptr interface{}) error
func (MemorySingletonProvider) WriteSingleton ¶
func (sp MemorySingletonProvider) WriteSingleton(ctx context.Context, name string, f singleton.NewWriteCloserFunc, ptr interface{}) error
Click to show internal directories.
Click to hide internal directories.