Documentation ¶
Index ¶
- func New(cfg *Config) (backend.Reader, backend.Writer, backend.Compactor, error)
- type Backend
- func (rw *Backend) Append(ctx context.Context, name string, blockID uuid.UUID, tenantID string, ...) (backend.AppendTracker, error)
- func (rw *Backend) BlockMeta(ctx context.Context, blockID uuid.UUID, tenantID string) (*backend.BlockMeta, error)
- func (rw *Backend) Blocks(ctx context.Context, tenantID string) ([]uuid.UUID, 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) MarkBlockCompacted(blockID uuid.UUID, tenantID string) error
- func (rw *Backend) Read(ctx context.Context, name string, blockID uuid.UUID, tenantID string) ([]byte, error)
- func (rw *Backend) ReadRange(ctx context.Context, name string, blockID uuid.UUID, tenantID string, ...) error
- func (rw *Backend) ReadReader(ctx context.Context, name string, blockID uuid.UUID, tenantID string) (io.ReadCloser, int64, error)
- func (rw *Backend) Shutdown()
- func (rw *Backend) Tenants(ctx context.Context) ([]string, error)
- func (rw *Backend) Write(ctx context.Context, name string, blockID uuid.UUID, tenantID string, ...) error
- func (rw *Backend) WriteBlockMeta(ctx context.Context, meta *backend.BlockMeta) error
- func (rw *Backend) WriteReader(ctx context.Context, name string, blockID uuid.UUID, tenantID string, ...) 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, blockID uuid.UUID, tenantID string, tracker backend.AppendTracker, buffer []byte) (backend.AppendTracker, error)
Append implements backend.Writer
func (*Backend) BlockMeta ¶ added in v0.7.0
func (rw *Backend) BlockMeta(ctx context.Context, blockID uuid.UUID, tenantID string) (*backend.BlockMeta, error)
BlockMeta implements backend.Reader
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, blockID uuid.UUID, tenantID string) ([]byte, error)
Read implements backend.Reader
func (*Backend) ReadRange ¶ added in v0.7.0
func (rw *Backend) ReadRange(ctx context.Context, name string, blockID uuid.UUID, tenantID string, offset uint64, buffer []byte) error
ReadRange implements backend.Reader
func (*Backend) ReadReader ¶ added in v0.7.0
func (*Backend) Shutdown ¶ added in v0.7.0
func (rw *Backend) Shutdown()
Shutdown implements backend.Reader
func (*Backend) Write ¶ added in v0.7.0
func (rw *Backend) Write(ctx context.Context, name string, blockID uuid.UUID, tenantID string, buffer []byte) error
Write implements backend.Writer
func (*Backend) WriteBlockMeta ¶ added in v0.7.0
WriteBlockMeta implements backend.Writer
Click to show internal directories.
Click to hide internal directories.