Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { // Load loads the data from the DB with the specified key. Load(key string) ([]byte, error) // Save puts bytes in the bucket. For a new item, set key to the empty // string if you want a key automatically chosen for you. Returns the key // used for saving data and any error that occurred. Save(key string, value []byte) (string, error) // HasKey returns true if the key is in the DB, false if not HasKey(key string) bool // Delete deletes a key from the database Delete(key string) error // List returns all keys List() ([]string, error) // Close disconnects from the database and cleans up Close() error }
Database defines an interface for a database utility
Click to show internal directories.
Click to hide internal directories.