Documentation
¶
Index ¶
- type Bolt
- func (b *Bolt) Close() error
- func (b *Bolt) DB() *storm.DB
- func (b *Bolt) Delete(bucket string, data interface{}) error
- func (b *Bolt) DeleteKey(bucket string, key interface{}) error
- func (b *Bolt) GetAllFrom(bucket string, data interface{}) error
- func (b *Bolt) GetBuckets() []string
- func (b *Bolt) GetLast(bucket string, to interface{}) error
- func (b *Bolt) GetOneByField(bucket string, fieldName string, key interface{}, to interface{}) error
- func (b *Bolt) GetValue(bucket string, key interface{}, to interface{}) error
- func (b *Bolt) Lock()
- func (b *Bolt) RLock()
- func (b *Bolt) RUnlock()
- func (b *Bolt) SetValue(bucket string, key interface{}, to interface{}) error
- func (b *Bolt) Store(bucket string, data interface{}) error
- func (b *Bolt) Unlock()
- func (b *Bolt) Update(bucket string, object interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bolt ¶
type Bolt struct {
// contains filtered or unexported fields
}
Bolt is a wrapper around boltdb
func NewStorage ¶
NewStorage creates a new BoltDB storage for service promises
func (*Bolt) GetAllFrom ¶
GetAllFrom allows to get all structs from the bucket
func (*Bolt) GetOneByField ¶
func (b *Bolt) GetOneByField(bucket string, fieldName string, key interface{}, to interface{}) error
GetOneByField returns an object from the given bucket by the given field
Directories
¶
Path | Synopsis |
---|---|
Package boltdbtest contains the utitilies needed for boltdb testing
|
Package boltdbtest contains the utitilies needed for boltdb testing |
Click to show internal directories.
Click to hide internal directories.