Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBucketNotFound = bbolt.ErrBucketNotFound ErrKeyNotFound = errors.New("key not found") DefaultOptions *Options = bbolt.DefaultOptions )
Functions ¶
func Walk ¶
func Walk(tx Tx, walk FilterFunc) error
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB wrap for boltdb, combo tx and bucket
func OpenDefault ¶
type FilterFunc ¶
type ListOption ¶
type ListOption func(options *ListOptions)
func ListFilter ¶
func ListFilter(filter FilterFunc) ListOption
func ListNoBucket ¶
func ListNoBucket() ListOption
func ListOnlyBucket ¶
func ListOnlyBucket() ListOption
func ListReverse ¶
func ListReverse() ListOption
func ListSeek ¶
func ListSeek(prefix []byte) ListOption
type ListOptions ¶
type ListOptions struct {
// contains filtered or unexported fields
}
func (*ListOptions) Apply ¶
func (o *ListOptions) Apply(options ...ListOption) *ListOptions
type Tx ¶
type Tx interface { Root() Tx Parent() Tx Pwd() [][]byte IsRoot() bool Writable() bool Bucket(name []byte) Tx CreateBucket(name []byte) (Tx, error) DeleteBucket(name []byte) error Get(key []byte) []byte Put(key []byte, value []byte) error Delete(key []byte) error Cursor() *Cursor Walk(walk FilterFunc) error List(listOptions ...ListOption) (EntrySet, error) NextSequence() (uint64, error) Sequence() uint64 SetSequence(v uint64) error Stats() interface{} DB() *DB }
Click to show internal directories.
Click to hide internal directories.