pin

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: AGPL-3.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 {
	DB dbm.DB
	// contains filtered or unexported fields
}

func NewStore

func NewStore(db dbm.DB) *Store

func (*Store) AllWaiter

func (s *Store) AllWaiter(height uint64) <-chan struct{}

func (*Store) CreatePin

func (s *Store) CreatePin(ctx context.Context, name string, height uint64) error

func (*Store) Height

func (s *Store) Height(name string) uint64

func (*Store) LoadAll

func (s *Store) LoadAll(ctx context.Context) error

func (*Store) PinWaiter

func (s *Store) PinWaiter(pinName string, height uint64) <-chan struct{}

func (*Store) ProcessBlocks

func (s *Store) ProcessBlocks(ctx context.Context, c *protocol.Chain, pinName string, cb func(context.Context, *legacy.Block) error)

Jump to

Keyboard shortcuts

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