Documentation ¶
Index ¶
- Constants
- type Node
- func (n *Node) ChainID() string
- func (n *Node) Endpoint() string
- func (n *Node) IsRunning() bool
- func (n *Node) IsSynced() bool
- func (n *Node) OnEvent(eventType string, callback OnNodeEvent)
- func (n *Node) OnStart(callback OnNodeStart)
- func (n *Node) OnStatus(callback OnNodeStatus)
- func (n *Node) Redacted() string
- func (n *Node) Start(ctx context.Context) error
- func (n *Node) Started() chan struct{}
- func (n *Node) Status(ctx context.Context) (*ctypes.ResultStatus, error)
- func (n *Node) Stop(ctx context.Context) error
- func (n *Node) Subscribe(ctx context.Context, eventType string) (<-chan ctypes.ResultEvent, error)
- type NodeOption
- type OnNodeEvent
- 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 Node ¶
func (*Node) OnEvent ¶ added in v0.6.0
func (n *Node) OnEvent(eventType string, callback OnNodeEvent)
func (*Node) OnStart ¶ added in v0.5.0
func (n *Node) OnStart(callback OnNodeStart)
func (*Node) OnStatus ¶ added in v0.5.0
func (n *Node) OnStatus(callback OnNodeStatus)
type NodeOption ¶
type NodeOption func(*Node)
func DisableWebsocket ¶ added in v0.11.0
func DisableWebsocket() NodeOption
type OnNodeEvent ¶ added in v0.6.0
type OnNodeStatus ¶
type Pool ¶
func (*Pool) GetSyncedNode ¶
Click to show internal directories.
Click to hide internal directories.