backend

package
v0.0.0-...-bc42473 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadgerStore

type BadgerStore struct {
	Db *badger.DB
	// contains filtered or unexported fields
}

func OpenBadgerStore

func OpenBadgerStore(path string, allow eris.AllowOps) (store *BadgerStore, err error)

func (*BadgerStore) Allowed

func (store *BadgerStore) Allowed() eris.AllowOps

func (*BadgerStore) Close

func (store *BadgerStore) Close() (err error)

func (*BadgerStore) Drop

func (store *BadgerStore) Drop(ref eris.Ref) error

func (*BadgerStore) Get

func (store *BadgerStore) Get(ctx context.Context, chunk []byte, ref eris.Ref) error

func (*BadgerStore) Has

func (store *BadgerStore) Has(ctx context.Context, ref eris.Ref, chunkSize int) (present bool)

func (*BadgerStore) Iterate

func (store *BadgerStore) Iterate(ctx context.Context, iter eris.ChunkIteration) error

func (*BadgerStore) Put

func (store *BadgerStore) Put(ctx context.Context, chunk []byte, ref eris.Ref) error

type BoltStore

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

func OpenBoltStore

func OpenBoltStore(path string, allow eris.AllowOps) (store *BoltStore, err error)

func (*BoltStore) Allowed

func (store *BoltStore) Allowed() eris.AllowOps

func (*BoltStore) Close

func (store *BoltStore) Close() (err error)

func (*BoltStore) Drop

func (store *BoltStore) Drop(ref eris.Ref) error

func (*BoltStore) Get

func (store *BoltStore) Get(ctx context.Context, chunk []byte, ref eris.Ref) (err error)

func (*BoltStore) Has

func (store *BoltStore) Has(ctx context.Context, ref eris.Ref, chunkSize int) (present bool)

func (*BoltStore) Iterate

func (store *BoltStore) Iterate(ctx context.Context, iter eris.ChunkIteration) error

func (*BoltStore) Put

func (store *BoltStore) Put(ctx context.Context, chunk []byte, ref eris.Ref) error

Jump to

Keyboard shortcuts

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