Documentation ¶
Index ¶
- Constants
- func BytesToFloat64(b []byte) float64
- func BytesToUint64(b []byte) uint64
- func StringToBytes(v string) []byte
- func Uint64ToBytes(v uint64) []byte
- type BaseBucket
- func (b *BaseBucket) Cursor() *bolt.Cursor
- func (b *BaseBucket) Data() *bolt.Bucket
- func (b *BaseBucket) Delete(key []byte) error
- func (b *BaseBucket) ForEach(fn func(k, v []byte) error) error
- func (b *BaseBucket) Get(key []byte) []byte
- func (b *BaseBucket) IndexCursor(propName string) *IndexCursor
- func (b *BaseBucket) IndexProperties() (props []string, err error)
- func (b *BaseBucket) NextSequence() (uint64, error)
- func (b *BaseBucket) Put(key []byte, value []byte) error
- func (b *BaseBucket) Stats() bolt.BucketStats
- type Bucket
- func (bucket *Bucket) BaseBucket() *BaseBucket
- func (bucket *Bucket) Delete(key []byte) error
- func (bucket *Bucket) Exists() (bool, error)
- func (bucket *Bucket) Get(key []byte) (*Item, error)
- func (bucket *Bucket) GetRaw(key []byte) (value []byte, err error)
- func (bucket *Bucket) NextSequence() (uint64, error)
- func (bucket *Bucket) NextSequenceBytes() ([]byte, error)
- func (bucket *Bucket) Put(item *Item) (err error)
- func (bucket *Bucket) PutRaw(key []byte, value []byte) (err error)
- func (bucket *Bucket) Query() *Query
- type DB
- func (db *DB) Batch(fn func(*Tx) error) error
- func (db *DB) Begin(writable bool) (*Tx, error)
- func (db *DB) Bucket(name string) *Bucket
- func (db *DB) Close() error
- func (db *DB) Conn() *bolt.DB
- func (db *DB) DeleteBucket(name string) error
- func (db *DB) GoString() string
- func (db *DB) Path() string
- func (db *DB) String() string
- func (db *DB) Update(fn func(*Tx) error) error
- func (db *DB) View(fn func(*Tx) error) error
- type Filter
- type Index
- type IndexCursor
- func (ic *IndexCursor) Bucket() *BaseBucket
- func (ic *IndexCursor) First() *Index
- func (ic *IndexCursor) Get(value interface{}) *Index
- func (ic *IndexCursor) Last() *Index
- func (ic *IndexCursor) Next() *Index
- func (ic *IndexCursor) Prev() *Index
- func (ic *IndexCursor) SeekFirst(valueType byte, seek []byte) *Index
- func (ic *IndexCursor) SeekLast(valueType byte, seek []byte) *Index
- type Item
- type KeyPrefixFilter
- type KeyRangeFilter
- type Options
- type OrderBy
- type OrderByFilter
- type PropValueMatchFilter
- type PropValuePrefixFilter
- type PropValueRangeFilter
- type Query
- type Tx
- func (tx *Tx) Bucket(name string) (*Bucket, error)
- func (tx *Tx) BucketNames(fn func(name string) error) error
- func (tx *Tx) Commit() error
- func (tx *Tx) CopyFile(path string, mode os.FileMode) error
- func (tx *Tx) CreateBucket(name string) (*Bucket, error)
- func (tx *Tx) CreateBucketIfNotExists(name string) (*Bucket, error)
- func (tx *Tx) DeleteBucket(name string) error
- func (tx *Tx) InternalTx() *bolt.Tx
- func (tx *Tx) Rollback() error
- func (tx *Tx) WriteTo(w io.Writer) (n int64, err error)
Constants ¶
View Source
const ( ValueTypeBool = 0x01 ValueTypeString = 0x02 ValueTypeFloat64 = 0x03 ValueTypeNil = 0x04 )
Variables ¶
This section is empty.
Functions ¶
func BytesToFloat64 ¶
func BytesToUint64 ¶
func StringToBytes ¶
func Uint64ToBytes ¶
Types ¶
type BaseBucket ¶
type BaseBucket struct {
// contains filtered or unexported fields
}
BaseBucket is a low level bucket that is used inside of bucketstore.
func (*BaseBucket) Cursor ¶
func (b *BaseBucket) Cursor() *bolt.Cursor
func (*BaseBucket) Data ¶
func (b *BaseBucket) Data() *bolt.Bucket
func (*BaseBucket) Delete ¶
func (b *BaseBucket) Delete(key []byte) error
func (*BaseBucket) Get ¶
func (b *BaseBucket) Get(key []byte) []byte
func (*BaseBucket) IndexCursor ¶
func (b *BaseBucket) IndexCursor(propName string) *IndexCursor
func (*BaseBucket) IndexProperties ¶
func (b *BaseBucket) IndexProperties() (props []string, err error)
func (*BaseBucket) NextSequence ¶
func (b *BaseBucket) NextSequence() (uint64, error)
func (*BaseBucket) Stats ¶
func (b *BaseBucket) Stats() bolt.BucketStats
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func (*Bucket) BaseBucket ¶
func (bucket *Bucket) BaseBucket() *BaseBucket
func (*Bucket) NextSequence ¶
func (*Bucket) NextSequenceBytes ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteBucket ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) MustValueBytes ¶
func (*Index) ValueBytes ¶
type IndexCursor ¶
type IndexCursor struct {
// contains filtered or unexported fields
}
func (*IndexCursor) Bucket ¶
func (ic *IndexCursor) Bucket() *BaseBucket
func (*IndexCursor) First ¶
func (ic *IndexCursor) First() *Index
func (*IndexCursor) Get ¶
func (ic *IndexCursor) Get(value interface{}) *Index
func (*IndexCursor) Last ¶
func (ic *IndexCursor) Last() *Index
func (*IndexCursor) Next ¶
func (ic *IndexCursor) Next() *Index
func (*IndexCursor) Prev ¶
func (ic *IndexCursor) Prev() *Index
type KeyPrefixFilter ¶
type KeyRangeFilter ¶
type OrderByFilter ¶
type OrderByFilter struct {
OrderBy OrderBy
}
type PropValueMatchFilter ¶
type PropValuePrefixFilter ¶
type PropValueRangeFilter ¶
type Query ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func (*Tx) CreateBucketIfNotExists ¶
func (*Tx) DeleteBucket ¶
func (*Tx) InternalTx ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.