Documentation ¶
Index ¶
- type KeyValueDB
- func (kvdb *KeyValueDB) Close()
- func (kvdb *KeyValueDB) CreateBucket(bucket string, key string) (value []byte)
- func (kvdb *KeyValueDB) CreateBucketLinkRaw(bucket []byte, key []byte) (value []byte)
- func (kvdb *KeyValueDB) Delete(bucket []byte, key []byte)
- func (kvdb *KeyValueDB) DeleteBucket(bucket []byte)
- func (kvdb *KeyValueDB) DeleteBucketIfEmpty(bucket []byte)
- func (kvdb *KeyValueDB) Get(bucket []byte, key []byte) (value []byte)
- func (kvdb *KeyValueDB) GetBuckets() (buckets []string)
- func (kvdb *KeyValueDB) GetDInt64(key string) (value int64)
- func (kvdb *KeyValueDB) GetDString(key string) (value string)
- func (kvdb *KeyValueDB) GetInt64(bucket string, key string) (value int64)
- func (kvdb *KeyValueDB) GetKeyValues(bucket []byte) (values []KeyValueData)
- func (kvdb *KeyValueDB) GetKeys(bucket []byte) (values [][]byte)
- func (kvdb *KeyValueDB) GetLink(bucket string, key string) (value []byte)
- func (kvdb *KeyValueDB) GetOrCreateBucket(bucket string, key string) (value []byte)
- func (kvdb *KeyValueDB) GetOrCreateBucketLinkRaw(bucket []byte, key []byte) (value []byte)
- func (kvdb *KeyValueDB) GetString(bucket string, key string) (value string)
- func (kvdb *KeyValueDB) Init(DBname string)
- func (kvdb *KeyValueDB) Put(bucket []byte, key []byte, value []byte)
- func (kvdb *KeyValueDB) PutDInt64(key string, value int64)
- func (kvdb *KeyValueDB) PutDString(key string, value string)
- func (kvdb *KeyValueDB) PutInt64(bucket string, key string, value int64)
- func (kvdb *KeyValueDB) PutString(bucket string, key string, value string)
- type KeyValueData
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 (*KeyValueDB) GetLink ¶
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
Click to show internal directories.
Click to hide internal directories.