Documentation ¶
Index ¶
- type BinaryCodec
- type BoltStorage
- type Bucket
- func (b *Bucket) Bucket(name []byte) *Bucket
- func (b *Bucket) CreateBucket(key []byte) (*Bucket, error)
- func (b *Bucket) CreateBucketIfNotExists(key []byte) (*Bucket, error)
- func (b *Bucket) Cursor() *Cursor
- func (b *Bucket) Delete(key interface{}) error
- func (b *Bucket) DeleteBucket(key []byte) error
- func (b *Bucket) ForEach(fn interface{}) error
- func (b *Bucket) Get(key, value interface{}) (bool, error)
- func (b *Bucket) NextSequence() (uint64, error)
- func (b *Bucket) Put(key, value interface{}) error
- func (b *Bucket) Sequence() uint64
- func (b *Bucket) SetSequence(v uint64) error
- func (b *Bucket) Stats() bolt.BucketStats
- func (b *Bucket) Tx() *Tx
- func (b *Bucket) Writable() bool
- type Codec
- type Codecs
- type Cursor
- func (c *Cursor) Bucket() *Bucket
- func (c *Cursor) Delete() error
- func (c *Cursor) First(key, value interface{}) (bool, error)
- func (c *Cursor) Last(key, value interface{}) (bool, error)
- func (c *Cursor) Next(key, value interface{}) (bool, error)
- func (c *Cursor) Prev(key, value interface{}) (bool, error)
- func (c *Cursor) Seek(seek, key, value interface{}) (bool, error)
- type DB
- type GobCodec
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryCodec ¶
type BinaryCodec struct{}
func (BinaryCodec) Marshal ¶
func (BinaryCodec) Marshal(val interface{}) ([]byte, error)
func (BinaryCodec) Unmarshal ¶
func (BinaryCodec) Unmarshal(data []byte, val interface{}) error
type BoltStorage ¶
type BoltStorage struct {
DB *DB
}
func NewBoltStorage ¶
func NewBoltStorage(path string) (*BoltStorage, error)
func (*BoltStorage) Close ¶
func (b *BoltStorage) Close() error
func (*BoltStorage) GetBlockInfo ¶
func (*BoltStorage) UpdateBlockInfo ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func (*Bucket) CreateBucketIfNotExists ¶
func (*Bucket) DeleteBucket ¶
func (*Bucket) NextSequence ¶
func (*Bucket) SetSequence ¶
func (*Bucket) Stats ¶
func (b *Bucket) Stats() bolt.BucketStats
type Tx ¶
func (*Tx) CreateBucketIfNotExists ¶
Click to show internal directories.
Click to hide internal directories.