local

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

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 NewBackend(cfg *Config) (*Backend, error)

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 (rw *Backend) ClearBlock(blockID uuid.UUID, tenantID string) error

func (*Backend) CloseAppend added in v0.7.0

func (rw *Backend) CloseAppend(ctx context.Context, tracker backend.AppendTracker) error

CloseAppend implements backend.Writer

func (*Backend) CompactedBlockMeta added in v0.7.0

func (rw *Backend) CompactedBlockMeta(blockID uuid.UUID, tenantID string) (*backend.CompactedBlockMeta, error)

func (*Backend) List added in v1.1.0

func (rw *Backend) List(ctx context.Context, keypath backend.KeyPath) ([]string, error)

List implements backend.Reader

func (*Backend) MarkBlockCompacted added in v0.7.0

func (rw *Backend) MarkBlockCompacted(blockID uuid.UUID, tenantID string) error

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, _ bool) error

ReadRange implements backend.Reader

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, keypath backend.KeyPath, data io.Reader, _ int64, _ bool) error

Write implements backend.Writer

type Config

type Config struct {
	Path string `yaml:"path"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL