Documentation ¶
Index ¶
- type DB
- func (d *DB) Close() error
- func (d *DB) Get(ctx context.Context, key string) ([]byte, error)
- func (d *DB) GetKeys(ctx context.Context, prefix string) ([]string, error)
- func (d *DB) NewTransaction(ctx context.Context, update bool) (database.Transaction, context.Context, error)
- func (d *DB) Set(ctx context.Context, key string, value []byte) error
- type Txn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a naive store that stores values in memory. Do not use in production, changes are lost on restart.
func (*DB) NewTransaction ¶
Click to show internal directories.
Click to hide internal directories.