Documentation ¶
Overview ¶
Package inmemory is the in-memory database using b-trees.
Index ¶
- Constants
- type DB
- func (db *DB) ClearDeleted(_ context.Context, cutoff time.Time)
- func (db *DB) Close() error
- func (db *DB) Delete(_ context.Context, id string) error
- func (db *DB) Get(_ context.Context, id string) (*databroker.Record, error)
- func (db *DB) GetAll(_ context.Context) ([]*databroker.Record, error)
- func (db *DB) List(_ context.Context, sinceVersion string) ([]*databroker.Record, error)
- func (db *DB) Put(_ context.Context, id string, data *anypb.Any) error
- func (db *DB) Watch(ctx context.Context) <-chan struct{}
Constants ¶
View Source
const Name = config.StorageInMemoryName
Name is the storage type name for inmemory backend.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is an in-memory database of records using b-trees.
func (*DB) ClearDeleted ¶
ClearDeleted clears all the currently deleted records older than the given cutoff.
Click to show internal directories.
Click to hide internal directories.