Documentation ¶
Index ¶
- func Deserialize(bytes []byte, struct0 interface{}) error
- func Serialize(value interface{}) ([]byte, error)
- type BoltConfig
- type BoltDB
- func (b *BoltDB) CreateCollection(collection string) error
- func (b *BoltDB) DeleteCollection(collection string) error
- func (b *BoltDB) Disconnect()
- func (b *BoltDB) Get(collection, key string) (data []byte, err error)
- func (b *BoltDB) GetAll(collection string) (data [][]byte, err error)
- func (b *BoltDB) GetInRange(collection, minDate, maxDate string) (data [][]byte, err error)
- func (b *BoltDB) Put(collection string, key string, value []byte) error
- func (b *BoltDB) Remove(collection string, key string) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deserialize ¶
Types ¶
type BoltConfig ¶
type BoltDB ¶
func (*BoltDB) CreateCollection ¶
func (*BoltDB) DeleteCollection ¶
func (*BoltDB) GetInRange ¶
GetInRange get key/value pairs within a time range minDate: RFC3339 sortable time string ie. 1990-01-01T00:00:00Z maxDate example: RFC3339 sortable time string ie. 2000-01-01T00:00:00Z
type Store ¶
type Store interface { Disconnect() Get(collection, key string) ([]byte, error) GetAll(collection string) ([][]byte, error) GetInRange(collection, minTime, maxTime string) ([][]byte, error) Put(collection string, key string, value []byte) error Remove(collection string, key string) error DeleteCollection(collection string) error CreateCollection(collection string) error }
Click to show internal directories.
Click to hide internal directories.