Documentation ¶
Index ¶
- func NewSys(option ...Option) (err error)
- func OnInit(config map[string]interface{}, option ...Option) (err error)
- func Register(eId core.Event_Key, f interface{}) (err error)
- func RegisterGO(eId core.Event_Key, f interface{}) (err error)
- func RemoveEvent(eId core.Event_Key, f interface{}) (err error)
- func TriggerEvent(eId core.Event_Key, agr ...interface{})
- type EventSys
- func (this *EventSys) Register(eId core.Event_Key, f interface{}) (err error)
- func (this *EventSys) RegisterGO(eId core.Event_Key, f interface{}) (err error)
- func (this *EventSys) RemoveEvent(eId core.Event_Key, f interface{}) (err error)
- func (this *EventSys) TriggerEvent(eId core.Event_Key, agr ...interface{})
- type FunctionInfo
- type IEventSys
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGO ¶
func RemoveEvent ¶
func TriggerEvent ¶
Types ¶
type EventSys ¶
type EventSys struct {
// contains filtered or unexported fields
}
func (*EventSys) RegisterGO ¶
func (*EventSys) RemoveEvent ¶
移除事件
func (*EventSys) TriggerEvent ¶
触发
type FunctionInfo ¶
Click to show internal directories.
Click to hide internal directories.