file

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(dir string) (*Repository, error)

func (*Repository) Append

func (r *Repository) Append(ctx context.Context, ns memory.Namespace, key string, value json.RawMessage) error

func (*Repository) Delete

func (r *Repository) Delete(ctx context.Context, ns memory.Namespace, key string) error

func (*Repository) Get

func (*Repository) List added in v0.1.1

List is not supported by the file-backed repository because the file name is a hash of the full namespace+key and the original key cannot be recovered from the hash. It always returns an empty slice.

func (*Repository) Set

func (r *Repository) Set(ctx context.Context, ns memory.Namespace, key string, value json.RawMessage) error

Jump to

Keyboard shortcuts

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