Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("Item not found")
ErrNotFound is returned if you try to get an item that doesn't exist
Functions ¶
This section is empty.
Types ¶
type Iter ¶
type Iter interface { // Current unmarshals the object at the current pointer into the provided object Current(interface{}) error // Err returns the error that cause Next() to fail Err() error // Next moves the pointer along if possible, else returns false Next() bool }
Iter provides an interface to loop through a subset of objects
type Memzy ¶
type Memzy interface { // GetItem retrieves and unmarshals the object described by the key into the provided object GetItem(interface{}, map[string]interface{}) error // PutItem stores the object PutItem(interface{}) error // NewItem returns an Iter containing all of the objects that satisfy the conditions provided NewIter(...interface{}) Iter }
Memzy provides an interface between go objects and persistence layers
Current backends that implement this: - dynamodb - memory
Directories ¶
Path | Synopsis |
---|---|
Package dynamodb provides a library that uses DynamoDB to store your go types.
|
Package dynamodb provides a library that uses DynamoDB to store your go types. |
Package memory provides an in-memory key value store.
|
Package memory provides an in-memory key value store. |
Click to show internal directories.
Click to hide internal directories.