Documentation ¶
Index ¶
- type BlockWriter
- type Storage
- func (s *Storage) Append(key key.Key, value []byte, ttl time.Duration) error
- func (s *Storage) Close() error
- func (s *Storage) Compact(ctx context.Context) (interface{}, error)
- func (s *Storage) Delete(keys ...key.Key) error
- func (s *Storage) Range(seek, until key.Key, f func(key, value []byte) bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockWriter ¶ added in v1.2.7
BlockWriter represents a block writer that can be used to encode and write blocks
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage represents compactor storage.
func New ¶
func New(buffer storage.Storage, dest BlockWriter, monitor monitor.Monitor, interval time.Duration) *Storage
New creates a new storage implementation.
func (*Storage) Range ¶
Range performs a range query against the storage. It calls f sequentially for each key and value present in the store. If f returns false, range stops the iteration. The API is designed to be very similar to the concurrent map. The implementation must guarantee that the keys are lexigraphically sorted.
Click to show internal directories.
Click to hide internal directories.