storage

package
v0.0.5-beta2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	BatchSave(ctx context.Context, blockNum uint64, blockHash string, blockTime time.Time, updates map[string]map[string]graphnode.Entity, cursor string) (err error)
	Load(ctx context.Context, id string, entity graphnode.Entity, blockNum uint64) error
	LoadAllDistinct(ctx context.Context, model graphnode.Entity, blockNum uint64) ([]graphnode.Entity, error)

	LoadCursor(ctx context.Context) (string, error)

	CleanDataAtBlock(ctx context.Context, blockNum uint64) error
	CleanUpFork(ctx context.Context, newHeadBlock uint64) error

	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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