mem

package
v0.0.0-...-f5f25a8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMemStore

func WithMemStore(m *MemStore) func(*choices.ElwinConfig) error

Types

type MemStore

type MemStore struct {
	// contains filtered or unexported fields
}

func ExampleData

func ExampleData() *MemStore

ExampleData creates a MemStore with some example data loaded into it.

func (*MemStore) AddNamespace

func (m *MemStore) AddNamespace(n *choices.Namespace)

AddNamespace adds the given namespace to the defaultStorage implementation. This is just a basic list of namespaces that is concurrency safe.

func (*MemStore) Read

func (m *MemStore) Read() []choices.Namespace

func (*MemStore) Update

func (m *MemStore) Update() error

Jump to

Keyboard shortcuts

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