ibft

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitReaderOptions added in v0.1.1

type CommitReaderOptions struct {
	Logger           *zap.Logger
	Network          network.Network
	ValidatorStorage validatorstorage.ICollection
	IbftStorage      collections.Iibft
	Out              *event.Feed
}

CommitReaderOptions defines the required parameters to create an instance

type DecidedReaderOptions added in v0.0.16

type DecidedReaderOptions struct {
	Logger         *zap.Logger
	Storage        collections.Iibft
	Network        network.Network
	Config         *proto.InstanceConfig
	ValidatorShare *storage.Share

	Out *event.Feed
}

DecidedReaderOptions defines the required parameters to create an instance

type IncomingMsgsReaderOptions added in v0.0.16

type IncomingMsgsReaderOptions struct {
	Logger  *zap.Logger
	Network network.Network
	Config  *proto.InstanceConfig
	PK      *bls.PublicKey
}

IncomingMsgsReaderOptions defines the required parameters to create an instance

type Migrator added in v0.1.6

type Migrator interface {
	Migrate(r Reader) error
}

Migrator is an interface for migrating messages

func GetMainMigrator added in v0.1.6

func GetMainMigrator() Migrator

GetMainMigrator returns the instance of migrator

type Reader

type Reader interface {
	Start() error
}

Reader is an interface for ibft in the context of an exporter

func NewCommitReader added in v0.1.1

func NewCommitReader(opts CommitReaderOptions) Reader

NewCommitReader creates new instance

func NewDecidedReader added in v0.0.19

func NewDecidedReader(o DecidedReaderOptions) Reader

NewDecidedReader factory to create decided readers

func NewNetworkReader added in v0.0.19

func NewNetworkReader(o IncomingMsgsReaderOptions) Reader

NewNetworkReader factory to create network readers

type ShareHolder added in v0.1.5

type ShareHolder interface {
	Share() *storage.Share
}

ShareHolder is an interface for components that hold a share

Jump to

Keyboard shortcuts

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