Documentation ¶
Index ¶
- type MapDB
- func (db *MapDB) Clear(bucket []byte) error
- func (MapDB) Close() error
- func (db *MapDB) Delete(bucket, key []byte) error
- func (db *MapDB) DoesKeyExist(bucket, key []byte) (bool, error)
- func (db *MapDB) Get(bucket, key []byte, destination interfaces.BinaryMarshallable) (interfaces.BinaryMarshallable, error)
- func (db *MapDB) GetAll(bucket []byte, sample interfaces.BinaryMarshallableAndCopyable) ([]interfaces.BinaryMarshallableAndCopyable, [][]byte, error)
- func (db *MapDB) Init(bucketList [][]byte)
- func (db *MapDB) ListAllBuckets() ([][]byte, error)
- func (db *MapDB) ListAllKeys(bucket []byte) ([][]byte, error)
- func (db *MapDB) Put(bucket, key []byte, data interfaces.BinaryMarshallable) error
- func (db *MapDB) PutInBatch(records []interfaces.Record) error
- func (db *MapDB) RawPut(bucket, key []byte, data interfaces.BinaryMarshallable) error
- func (db *MapDB) Trim()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapDB ¶
func (*MapDB) Get ¶
func (db *MapDB) Get(bucket, key []byte, destination interfaces.BinaryMarshallable) (interfaces.BinaryMarshallable, error)
func (*MapDB) GetAll ¶
func (db *MapDB) GetAll(bucket []byte, sample interfaces.BinaryMarshallableAndCopyable) ([]interfaces.BinaryMarshallableAndCopyable, [][]byte, error)
func (*MapDB) ListAllBuckets ¶
func (*MapDB) Put ¶
func (db *MapDB) Put(bucket, key []byte, data interfaces.BinaryMarshallable) error
func (*MapDB) PutInBatch ¶
func (db *MapDB) PutInBatch(records []interfaces.Record) error
func (*MapDB) RawPut ¶
func (db *MapDB) RawPut(bucket, key []byte, data interfaces.BinaryMarshallable) error
Click to show internal directories.
Click to hide internal directories.