pin

package
v0.0.0-...-f024f33 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: AGPL-3.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 Pin

type Pin struct {
	// contains filtered or unexported fields
}

func (*Pin) Height

func (p *Pin) Height() uint64

func (*Pin) Listen

func (p *Pin) Listen(ctx context.Context, dbURL string)

func (*Pin) RaiseTo

func (p *Pin) RaiseTo(ctx context.Context, height uint64) error

func (*Pin) WaitForHeight

func (p *Pin) WaitForHeight(height uint64) <-chan struct{}

type Store

type Store struct {
	DB pg.DB
	// contains filtered or unexported fields
}

func (*Store) LoadAll

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

func (*Store) Pin

func (s *Store) Pin(name string) *Pin

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