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(ctx context.Context, tracker backend.AppendTracker) error
- func (rw *Backend) CompactedBlockMeta(blockID uuid.UUID, tenantID string) (*backend.CompactedBlockMeta, error)
- func (rw *Backend) List(ctx context.Context, keypath backend.KeyPath) ([]string, error)
- func (rw *Backend) MarkBlockCompacted(blockID uuid.UUID, tenantID string) error
- func (rw *Backend) Read(ctx 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(ctx 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 ¶ added in v0.7.0
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶ added in v0.7.0
func (*Backend) Append ¶ added in v0.7.0
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 ¶ added in v0.7.0
func (*Backend) CloseAppend ¶ added in v0.7.0
CloseAppend implements backend.Writer
func (*Backend) CompactedBlockMeta ¶ added in v0.7.0
func (*Backend) MarkBlockCompacted ¶ added in v0.7.0
func (*Backend) Read ¶ added in v0.7.0
func (rw *Backend) Read(ctx context.Context, name string, keypath backend.KeyPath, _ bool) (io.ReadCloser, int64, error)
Read implements backend.Reader
func (*Backend) ReadRange ¶ added in v0.7.0
func (rw *Backend) ReadRange(ctx context.Context, name string, keypath backend.KeyPath, offset uint64, buffer []byte) error
ReadRange implements backend.Reader
Click to show internal directories.
Click to hide internal directories.