pin

package
v0.0.0-...-4e0ae02 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2016 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 {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(db pg.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) Listen

func (s *Store) Listen(ctx context.Context, pinName, dbURL string)

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, *bc.Block) error)

Jump to

Keyboard shortcuts

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