dbbolt

package module
v0.0.0-...-60d4791 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

README

dbbolt

helper methods for bolt db

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueDB

type KeyValueDB struct {
	// contains filtered or unexported fields
}

func (*KeyValueDB) Close

func (kvdb *KeyValueDB) Close()

func (*KeyValueDB) CreateBucket

func (kvdb *KeyValueDB) CreateBucket(bucket string, key string) (value []byte)

func (*KeyValueDB) CreateBucketLinkRaw

func (kvdb *KeyValueDB) CreateBucketLinkRaw(bucket []byte, key []byte) (value []byte)

func (*KeyValueDB) Delete

func (kvdb *KeyValueDB) Delete(bucket []byte, key []byte)

func (*KeyValueDB) DeleteBucket

func (kvdb *KeyValueDB) DeleteBucket(bucket []byte)

func (*KeyValueDB) DeleteBucketIfEmpty

func (kvdb *KeyValueDB) DeleteBucketIfEmpty(bucket []byte)

func (*KeyValueDB) Get

func (kvdb *KeyValueDB) Get(bucket []byte, key []byte) (value []byte)

func (*KeyValueDB) GetBuckets

func (kvdb *KeyValueDB) GetBuckets() (buckets []string)

func (*KeyValueDB) GetDInt64

func (kvdb *KeyValueDB) GetDInt64(key string) (value int64)

func (*KeyValueDB) GetDString

func (kvdb *KeyValueDB) GetDString(key string) (value string)

func (*KeyValueDB) GetInt64

func (kvdb *KeyValueDB) GetInt64(bucket string, key string) (value int64)

func (*KeyValueDB) GetKeyValues

func (kvdb *KeyValueDB) GetKeyValues(bucket []byte) (values []KeyValueData)

func (*KeyValueDB) GetKeys

func (kvdb *KeyValueDB) GetKeys(bucket []byte) (values [][]byte)
func (kvdb *KeyValueDB) GetLink(bucket string, key string) (value []byte)

func (*KeyValueDB) GetOrCreateBucket

func (kvdb *KeyValueDB) GetOrCreateBucket(bucket string, key string) (value []byte)

func (*KeyValueDB) GetOrCreateBucketLinkRaw

func (kvdb *KeyValueDB) GetOrCreateBucketLinkRaw(bucket []byte, key []byte) (value []byte)

func (*KeyValueDB) GetString

func (kvdb *KeyValueDB) GetString(bucket string, key string) (value string)

func (*KeyValueDB) Init

func (kvdb *KeyValueDB) Init(DBname string)

func (*KeyValueDB) Put

func (kvdb *KeyValueDB) Put(bucket []byte, key []byte, value []byte)

func (*KeyValueDB) PutDInt64

func (kvdb *KeyValueDB) PutDInt64(key string, value int64)

func (*KeyValueDB) PutDString

func (kvdb *KeyValueDB) PutDString(key string, value string)

default bucket

func (*KeyValueDB) PutInt64

func (kvdb *KeyValueDB) PutInt64(bucket string, key string, value int64)

func (*KeyValueDB) PutString

func (kvdb *KeyValueDB) PutString(bucket string, key string, value string)

with bucket

type KeyValueData

type KeyValueData struct {
	Key   []byte `json:key`
	Value []byte `json:value`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL