store

package
v0.0.0-...-6d87009 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 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 BadgerStore

type BadgerStore struct {
	store.BadgerStore
}

func OpenBadger

func OpenBadger(ctx context.Context, path string) (*BadgerStore, error)

func (*BadgerStore) CheckAccountSnapshot

func (bs *BadgerStore) CheckAccountSnapshot(as *machine.AccountSnapshot) (bool, error)

func (*BadgerStore) CheckPendingGroupEventIdentifier

func (bs *BadgerStore) CheckPendingGroupEventIdentifier(id string) (bool, error)

func (*BadgerStore) ExpireGroupEventsWithCost

func (bs *BadgerStore) ExpireGroupEventsWithCost(events []*encoding.Event, cost common.Integer) error

func (*BadgerStore) ListPendingGroupEvents

func (bs *BadgerStore) ListPendingGroupEvents(limit int) ([]*encoding.Event, error)

func (*BadgerStore) ListProcesses

func (bs *BadgerStore) ListProcesses() ([]*machine.Process, error)

func (*BadgerStore) ListSignedGroupEvents

func (bs *BadgerStore) ListSignedGroupEvents(pid string, limit int) ([]*encoding.Event, error)

func (*BadgerStore) ReadAsset

func (bs *BadgerStore) ReadAsset(id string) (*machine.Asset, error)

func (*BadgerStore) ReadAssetOrCollectible

func (bs *BadgerStore) ReadAssetOrCollectible(id string) (string, error)

func (*BadgerStore) ReadCollectibleToken

func (bs *BadgerStore) ReadCollectibleToken(id string) (*machine.CollectibleToken, error)

func (*BadgerStore) ReadEngineGroupEventsOffset

func (bs *BadgerStore) ReadEngineGroupEventsOffset(pid string) (uint64, error)

func (*BadgerStore) ReadGroupEventSignatures

func (bs *BadgerStore) ReadGroupEventSignatures(pid string, nonce uint64) ([][]byte, bool, error)

func (*BadgerStore) WriteAccountSnapshot

func (bs *BadgerStore) WriteAccountSnapshot(as *machine.AccountSnapshot) error

func (*BadgerStore) WriteAsset

func (bs *BadgerStore) WriteAsset(a *machine.Asset) error

func (*BadgerStore) WriteAssetOrCollectible

func (bs *BadgerStore) WriteAssetOrCollectible(id, cat string) error

func (*BadgerStore) WriteCollectibleToken

func (bs *BadgerStore) WriteCollectibleToken(a *machine.CollectibleToken) error

func (*BadgerStore) WriteEngineGroupEventsOffset

func (bs *BadgerStore) WriteEngineGroupEventsOffset(pid string, offset uint64) error

func (*BadgerStore) WritePendingGroupEventAndNonce

func (bs *BadgerStore) WritePendingGroupEventAndNonce(event *encoding.Event, id string) error

func (*BadgerStore) WritePendingGroupEventSignatures

func (bs *BadgerStore) WritePendingGroupEventSignatures(pid string, nonce uint64, partials [][]byte) error

func (*BadgerStore) WriteProcess

func (bs *BadgerStore) WriteProcess(p *machine.Process) error

func (*BadgerStore) WriteSignedGroupEventAndExpirePending

func (bs *BadgerStore) WriteSignedGroupEventAndExpirePending(event *encoding.Event) error

Jump to

Keyboard shortcuts

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