Documentation ¶
Index ¶
- type BoltStore
- func (bs *BoltStore) DeleteAll(bucket string) error
- func (bs *BoltStore) Get(bucket string, key string) (val string, err error)
- func (bs *BoltStore) GetAll(bucket string) (vals map[string]string, err error)
- func (bs *BoltStore) InitBucket(bucket string) error
- func (bs *BoltStore) Put(bucket string, key string, value string) error
- type BucketKeyValueStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
BoltStore is a Bolt backed bucket key value store
func NewBoltStore ¶
NewBoltStore returns a new BoltStore
func (*BoltStore) InitBucket ¶
InitBucket initialises a bucket
type BucketKeyValueStore ¶
type BucketKeyValueStore interface { InitBucket(bucket string) error Get(bucket string, key string) (string, error) Put(bucket string, key string, value string) error GetAll(bucket string) (map[string]string, error) DeleteAll(bucket string) error }
BucketKeyValueStore represents a bucket key value store
Click to show internal directories.
Click to hide internal directories.