Documentation ¶
Index ¶
- type Client
- type DBAccessor
- func (DBAccessor) GetBucket(tx *bolt.Tx, name string, nested ...string) (*bolt.Bucket, error)
- func (DBAccessor) GetObject(tx *bolt.Tx, bucketName, id string, out interface{}) error
- func (DBAccessor) PutObject(bucket *bolt.Bucket, key string, obj interface{}) error
- func (DBAccessor) Walk(bucket *bolt.Bucket, callback func(id string, data []byte) error) error
- func (DBAccessor) WalkPrefix(bucket *bolt.Bucket, prefix string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Accessor DBAccessor DB *bolt.DB Transformer *modeltransformer.Transformer }
type DBAccessor ¶
type DBAccessor struct{}
func (DBAccessor) GetObject ¶
func (DBAccessor) GetObject(tx *bolt.Tx, bucketName, id string, out interface{}) error
func (DBAccessor) PutObject ¶
func (DBAccessor) PutObject(bucket *bolt.Bucket, key string, obj interface{}) error
func (DBAccessor) WalkPrefix ¶
Click to show internal directories.
Click to hide internal directories.