Documentation ¶
Index ¶
- type Node
- func (n *Node) CheckTx(ctx context.Context, tx []byte) (*protocol.CheckTxResult, error)
- func (n *Node) Cleanup()
- func (n *Node) HandleEpochTransitionLocked(*committee.EpochSnapshot)
- func (n *Node) HandleNewBlockEarlyLocked(*block.Block)
- func (n *Node) HandleNewBlockLocked(blk *block.Block)
- func (n *Node) HandleNewEventLocked(*roothash.Event)
- func (n *Node) HandlePeerTx(ctx context.Context, tx []byte) error
- func (n *Node) HandleRuntimeHostEventLocked(*host.Event)
- func (n *Node) Initialized() <-chan struct{}
- func (n *Node) Name() string
- func (n *Node) Query(ctx context.Context, round uint64, method string, args []byte) ([]byte, error)
- func (n *Node) Quit() <-chan struct{}
- func (n *Node) Start() error
- func (n *Node) Stop()
- func (n *Node) SubmitTx(ctx context.Context, tx []byte) (<-chan *api.SubmitTxResult, *protocol.Error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is a client node.
func (*Node) Cleanup ¶
func (n *Node) Cleanup()
Cleanup performs the service specific post-termination cleanup.
func (*Node) HandleEpochTransitionLocked ¶
func (n *Node) HandleEpochTransitionLocked(*committee.EpochSnapshot)
HandleEpochTransitionLocked is guarded by CrossNode.
func (*Node) HandleNewBlockEarlyLocked ¶
HandleNewBlockEarlyLocked is guarded by CrossNode.
func (*Node) HandleNewBlockLocked ¶
HandleNewBlockLocked is guarded by CrossNode.
func (*Node) HandleNewEventLocked ¶
HandleNewEventLocked is guarded by CrossNode.
func (*Node) HandleRuntimeHostEventLocked ¶ added in v0.2202.0
HandleRuntimeHostEventLocked is guarded by CrossNode.
func (*Node) Initialized ¶
func (n *Node) Initialized() <-chan struct{}
Initialized returns a channel that will be closed when the node is initialized and ready to service requests.
Click to show internal directories.
Click to hide internal directories.