Documentation ¶
Index ¶
- type ByteStore
- func (bs ByteStore) Close() error
- func (bs ByteStore) Delete(bucket string, key string) error
- func (bs ByteStore) DeleteBucket(bucket string) error
- func (bs ByteStore) Get(bucket string, key string) []byte
- func (bs ByteStore) GetBucket(bucket string) []KeyValue
- func (bs ByteStore) GetBucketValues(bucket string) [][]byte
- func (bs ByteStore) Put(bucket string, key string, value []byte) error
- type KeyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteStore ¶
ByteStore is the struct which contains the pulicly exposed *bolt.DB driver and attached byteStore methods
func New ¶
New returns an initialised byteStore with the dbFileName initialised at the dbFileName target location
func (ByteStore) DeleteBucket ¶
DeleteBucket deletes a whole bucket
func (ByteStore) Get ¶
Get retrieves the value using the bucket and key provided, an empty byte will be returned if no value is present.
func (ByteStore) GetBucket ¶
GetBucket retrieves all keys and values in a bucket, an empty KeyValue slice will be returned if no values are present.
func (ByteStore) GetBucketValues ¶
GetBucketValues retrieves all values in a bucket, an empty slice of bytes will be returned if no values are present.
Click to show internal directories.
Click to hide internal directories.