Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
Filesystem implements filesystem persistence storage accessor.
func CreateFilesystem ¶
func CreateFilesystem(root string) (*Filesystem, error)
CreateFilesystem creates a filesystem for the argument diretory.
func OpenFilesystem ¶
func OpenFilesystem(root string) (*Filesystem, error)
OpenFilesystem opens the filesystem from the argument directory.
func (*Filesystem) Exists ¶
func (fs *Filesystem) Exists(namespace, key string) (bool, error)
Exists implements Reader.Exists.
func (*Filesystem) Get ¶
func (fs *Filesystem) Get(namespace, key string, flags Flags) ([]byte, error)
Get implements Reader.Get.
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP implements HTTP presistence storage accessor.
type Reader ¶
type Reader interface { // Exists tests if the specified key exists in the namespace. Exists(namespace, key string) (bool, error) // Get gets the data of the specified key in the namespace. Get(namespace, key string, flags Flags) ([]byte, error) // GetAll returns all keys and their values from the namespae. GetAll(namespace string) (map[string][]byte, error) }
Reader defines persistence reader interface.
Click to show internal directories.
Click to hide internal directories.