pvm

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChainID = ids.ID{}

	ErrUnknownBlockType = errors.New("unknown block type")
)

Functions

This section is empty.

Types

type Reader added in v1.1.0

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

func NewReader added in v1.1.0

func NewReader(conns *services.Connections) *Reader

func (*Reader) GetBlock added in v1.1.0

func (r *Reader) GetBlock(ctx context.Context, id ids.ID) (*models.Block, error)

func (*Reader) ListBlocks added in v1.1.0

func (r *Reader) ListBlocks(ctx context.Context, params *params.ListBlocksParams) (*models.BlockList, error)

type Writer added in v1.1.0

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

func NewWriter added in v1.1.0

func NewWriter(conns *services.Connections, networkID uint32, chainID string) (*Writer, error)

func (*Writer) Bootstrap added in v1.1.0

func (w *Writer) Bootstrap(ctx context.Context) error

func (*Writer) Consume added in v1.1.0

func (w *Writer) Consume(c services.Consumable) error

func (*Writer) ConsumeConsensus added in v1.1.2

func (w *Writer) ConsumeConsensus(c services.Consumable) error

func (*Writer) Name added in v1.1.0

func (*Writer) Name() string

Jump to

Keyboard shortcuts

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