Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNothing reports a non-existing key. ErrNothing = errors.New("donkey: key not found") // ErrKeyTooShort reports an empty key. ErrKeyTooShort = errors.New("donkey: key is too short") // ErrKeyTooLong reports a too long key. ErrKeyTooLong = errors.New("donkey: key is too long") // ErrUnsuppValue reports an unsupported value type. ErrUnsuppValue = errors.New("donkey: unsupported value") // ErrValueTooLong reports a too long value. ErrValueTooLong = errors.New("donkey: value is too long") )
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database is a disk-backed key-value database.
func Create ¶
func Create(s io.ReadWriteSeeker) (*Database, error)
Create creates a new key-value database.
func Open ¶
func Open(s io.ReadWriteSeeker) (*Database, error)
Open opens an existing key-value database.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.