ibft

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
}

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 Reader

type Reader interface {
	Start() error
}

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

func NewNetworkReader added in v0.0.19

func NewNetworkReader(o IncomingMsgsReaderOptions) Reader

NewNetworkReader factory to create network readers

type SyncRead added in v0.0.19

type SyncRead interface {
	Reader
	Syncer
}

SyncRead reads and sync data

func NewDecidedReader added in v0.0.19

func NewDecidedReader(o DecidedReaderOptions) SyncRead

NewDecidedReader factory to create decided readers

type Syncer added in v0.0.19

type Syncer interface {
	Sync() error
}

Syncer is an interface for syncing data

Jump to

Keyboard shortcuts

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