Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncBlockExecutor ¶
type AsyncBlockExecutor interface {
BlockExecutor
Stop()
//Asynchronous acquisition block execution results
ExecuteStatus() <-chan *BlockExecuteStatus
}
AsyncBlockExecutor defines the interface of the asynchronous executor.
type AsyncExecutor ¶
type AsyncExecutor struct {
AsyncBlockExecutor
// contains filtered or unexported fields
}
AsyncExecutor async block executor implement.
func NewAsyncExecutor ¶
func NewAsyncExecutor(executeFn Executor) *AsyncExecutor
NewAsyncExecutor new a async block executor.
func (*AsyncExecutor) ExecuteStatus ¶
func (exe *AsyncExecutor) ExecuteStatus() <-chan *BlockExecuteStatus
ExecuteStatus return a channel for notify block execute result.
type BlockExecuteStatus ¶
BlockExecuteStatus is block execution results, including block Hash, block Number, error message
Click to show internal directories.
Click to hide internal directories.