Help us shape the future of Go! Take the 2026 Go Developer Survey

filestore

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJournal

func ParseJournal(content []byte) ([]memory.Item, error)

ParseJournal validates an offline migration source without skipping damaged records.

Types

type FileStore

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

func NewFileStore

func NewFileStore(dir string) (*FileStore, error)

func (*FileStore) Append

func (store *FileStore) Append(ctx context.Context, item memory.Item) (string, error)

func (*FileStore) Delete

func (store *FileStore) Delete(ctx context.Context, id string) error

func (*FileStore) Get

func (store *FileStore) Get(ctx context.Context, id string) (memory.Item, error)

func (*FileStore) Query

func (store *FileStore) Query(ctx context.Context, filter memory.Filter) ([]memory.Item, error)

func (*FileStore) Transact

func (store *FileStore) Transact(ctx context.Context, fn func(memory.Store) error) error

Jump to

Keyboard shortcuts

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