Documentation
¶
Index ¶
- type Storage
- func (s *Storage) ApplyBatch(ctx context.Context, items []kv.KeyValue) error
- func (s *Storage) Delete(ctx context.Context, key []byte) error
- func (s *Storage) Get(ctx context.Context, key []byte) ([]byte, error)
- func (s *Storage) Range(ctx context.Context, c kv.KeyConstraint, opts kv.QueryOptions) iter.Seq2[kv.KeyValue, error]
- func (s *Storage) Set(ctx context.Context, key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage provides in-memory storage backed by go-memdb.
func (*Storage) ApplyBatch ¶
ApplyBatch applies a batch of set and delete operations in a single transaction. For each item: nil Value means delete, non-nil means set.
Click to show internal directories.
Click to hide internal directories.