Documentation ¶
Index ¶
- type Badger
- func (b Badger) Close() error
- func (b Badger) Delete(ctx context.Context, collection, id string) (ok bool, err error)
- func (b Badger) Get(ctx context.Context, collection, id string, value interface{}) (err error)
- func (b Badger) GetAll(ctx context.Context, collection string) (values []map[string]interface{}, err error)
- func (b Badger) Ping(ctx context.Context) error
- func (b Badger) Set(ctx context.Context, collection, id string, value interface{}) (err error)
- type Driver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Badger ¶
type Badger struct {
// contains filtered or unexported fields
}
Badger is the storage driver to manage data using a local database (this configuration is not High Available)
func (Badger) GetAll ¶
func (b Badger) GetAll(ctx context.Context, collection string) (values []map[string]interface{}, err error)
GetAll retrieves all the items for the required dataset
Click to show internal directories.
Click to hide internal directories.