Documentation ¶
Overview ¶
package memstorage provides a simple in-memory key store designed for use in test cases, particularly to isolate them from the filesystem, concurrency, and cleanup issues.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemStore ¶
type MemStore map[string]data
func New ¶
func New() MemStore
New creates an instance of file-based key storage with tight permissions
func (MemStore) Delete ¶
Delete removes the named key from the MemStore, raising an error if it wasn't present yet.
Click to show internal directories.
Click to hide internal directories.