Documentation ¶
Index ¶
- Constants
- type Node
- func (n *Node) ChainID() string
- func (n *Node) IsRunning() bool
- func (n *Node) IsSynced() bool
- func (n *Node) Start(ctx context.Context)
- func (n *Node) Started() chan struct{}
- func (n *Node) Stop(ctx context.Context) error
- func (n *Node) Subscribe(ctx context.Context, eventType string) (<-chan ctypes.ResultEvent, error)
- type NodeOption
- type OnNodeStart
- type OnNodeStatus
- type Pool
Constants ¶
View Source
const ( EventCompleteProposal = "CompleteProposal" EventNewBlock = "NewBlock" EventNewRound = "NewRound" EventRoundState = "RoundState" EventValidatorSetUpdates = "ValidatorSetUpdates" EventVote = "Vote" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeOption ¶
type NodeOption func(*Node)
func WithOnStart ¶
func WithOnStart(onStart OnNodeStart) NodeOption
func WithOnStatus ¶
func WithOnStatus(onStatus OnNodeStatus) NodeOption
type OnNodeStatus ¶
type Pool ¶
type Pool struct { Nodes []*Node // contains filtered or unexported fields }
func (*Pool) GetSyncedNode ¶
Click to show internal directories.
Click to hide internal directories.