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) HandleRuntimeHostEvent(*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)
Guarded by CrossNode.
func (*Node) HandleNewBlockEarlyLocked ¶
Guarded by CrossNode.
func (*Node) HandleNewBlockLocked ¶
Guarded by CrossNode.
func (*Node) HandleNewEventLocked ¶
Guarded by CrossNode.
func (*Node) HandleRuntimeHostEvent ¶
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.