Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { // Put sets the value for a key. Put(key string, obj interface{}) // Get returns the value stored in the map for a key, or nil if no value is present. // The ok result indicates whether value was found in the map. Get(key string) (obj interface{}, exists bool) // Update sets the value for a key. Update(key string, obj interface{}) // Delete deletes the value for a key. Delete(key string) // List returns a list of all the objects. List() []interface{} // ListKeys returns a list of all the keys associated with objects. ListKeys() []string }
func NewMemoryStorage ¶
NewMemoryStorage returns an in-memory storage.
Click to show internal directories.
Click to hide internal directories.