Documentation ¶
Index ¶
- func New(cfg *Config) (backend.RawReader, backend.RawWriter, backend.Compactor, error)
- type Backend
- func (rw *Backend) Append(ctx context.Context, name string, keypath backend.KeyPath, ...) (backend.AppendTracker, error)
- func (rw *Backend) ClearBlock(blockID uuid.UUID, tenantID string) error
- func (rw *Backend) CloseAppend(_ context.Context, tracker backend.AppendTracker) error
- func (rw *Backend) CompactedBlockMeta(blockID uuid.UUID, tenantID string) (*backend.CompactedBlockMeta, error)
- func (rw *Backend) List(_ context.Context, keypath backend.KeyPath) ([]string, error)
- func (rw *Backend) MarkBlockCompacted(blockID uuid.UUID, tenantID string) error
- func (rw *Backend) Read(_ context.Context, name string, keypath backend.KeyPath, _ bool) (io.ReadCloser, int64, error)
- func (rw *Backend) ReadRange(ctx context.Context, name string, keypath backend.KeyPath, offset uint64, ...) error
- func (rw *Backend) Shutdown()
- func (rw *Backend) Write(_ context.Context, name string, keypath backend.KeyPath, data io.Reader, ...) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func (*Backend) Append ¶
func (rw *Backend) Append(ctx context.Context, name string, keypath backend.KeyPath, tracker backend.AppendTracker, buffer []byte) (backend.AppendTracker, error)
Append implements backend.Writer
func (*Backend) ClearBlock ¶
func (*Backend) CloseAppend ¶
CloseAppend implements backend.Writer
func (*Backend) CompactedBlockMeta ¶
func (*Backend) MarkBlockCompacted ¶
func (*Backend) Read ¶
func (rw *Backend) Read(_ context.Context, name string, keypath backend.KeyPath, _ bool) (io.ReadCloser, int64, error)
Read implements backend.Reader
func (*Backend) ReadRange ¶
func (rw *Backend) ReadRange(ctx context.Context, name string, keypath backend.KeyPath, offset uint64, buffer []byte, _ bool) error
ReadRange implements backend.Reader
Click to show internal directories.
Click to hide internal directories.