filedb

package
v0.45.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDB

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

func NewFileDB

func NewFileDB(fs filestore.Store, c cache.Cache, opts ...Option) (*FileDB, error)

func (*FileDB) Close

func (f *FileDB) Close() error

func (*FileDB) Create

func (f *FileDB) Create(ctx context.Context, col datastore.Collection, id string, entity interface{}) error

func (*FileDB) Find

func (*FileDB) Get

func (f *FileDB) Get(ctx context.Context, col datastore.Collection, id string, v interface{}) error

func (*FileDB) Update

func (f *FileDB) Update(ctx context.Context, col datastore.Collection, id string, updater datastore.Updater) error

type Iterator added in v0.27.0

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

func (*Iterator) Cursor added in v0.27.0

func (it *Iterator) Cursor() (string, error)

func (*Iterator) Next added in v0.27.0

func (it *Iterator) Next(dst interface{}) error

type Option

type Option func(*FileDB)

func WithLogger

func WithLogger(logger *zap.Logger) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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