memory

package
v0.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL