badgerstore

package module
v0.0.0-...-8dcd910 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 9 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 struct {
	// contains filtered or unexported fields
}

func New

func New(db *badger.DB, prefix string) *Store

func (*Store) Load

func (s *Store) Load(context.Context) (chainsync.Points, error)

Load saved points

func (*Store) Save

func (s *Store) Save(_ context.Context, point chainsync.Point) error

Save the point; save will be called multiple times and should only keep track of the most recent points

Jump to

Keyboard shortcuts

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