Documentation ¶
Index ¶
Constants ¶
View Source
const ( NetMessageEvent = "event.netmessage" NewBlockEvent = "event.newblock" CanMiningEvent = "event.canmining" )
EventType list
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEvent ¶
type BaseEvent struct {
// contains filtered or unexported fields
}
BaseEvent is a kind of event structure
type Event ¶
type Event interface { EventType() EventType Data() interface{} }
Event in Consensus State-Machine
func NewBaseEvent ¶
NewBaseEvent creates an event
Click to show internal directories.
Click to hide internal directories.