Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJSON ¶
CreateJSON creates an object blob that is the marshalling of the object.
func DestroyPsql ¶
DestroyPsql destroys the object store database.
Types ¶
type Objects ¶
type Objects interface { // Open opens a new blob. Open(key string) (io.ReadCloser, error) // Create a new object for writing. Create(r io.Reader) (string, error) // Has checks if an object exists. Has(key string) (bool, error) }
Objects provides a simple immutable key value store interface for saving blob objects.
type Store ¶
type Store interface { // New creates a blob, returning the blob key. Put(bs []byte) (string, error) // Get fetches the content of a blob, returning the blob content. Get(key string) ([]byte, error) // Has checks if a blob of the key exists. Has(key string) (bool, error) }
Store provides a simple immutable key value store interface for saving blob objects.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.