Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EventOutOfRangeError = errors.New("event out of range") EventHandleTwice = errors.New("event handled twice") )
View Source
var ConfigFile = "mirai_go.config"
View Source
var IsDebug = false
View Source
var TimeOutError = errors.New("time out")
Functions ¶
func FutureFunc ¶
Types ¶
type EventCenter ¶
type EventCenter interface { // RegisterEvent to event center, return unique identifier for current event RegisterEvent() (uint32, chan *Result) // Notify the event with id, and pass param in to it Notify(id uint32, in any, err error) error }
func New ¶
func New(cap uint32) EventCenter
Click to show internal directories.
Click to hide internal directories.