Documentation ¶
Index ¶
Constants ¶
View Source
const (
KEYEVENT = "KEYEVENT"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler interface {
Handle(event Event)
}
type EventManager ¶
type EventManager interface { GetPool(poolname string) *sync.Pool RegisterHandler(routekey string, handler EventHandler) UnRegisterHandler(routekey string, handler EventHandler) Publish(event Event) bool }
func GetMgrInstance ¶
func GetMgrInstance() EventManager
func GetMgrInstanceWithParam ¶
func GetMgrInstanceWithParam(workerCount int, eventChanSize int) EventManager
Click to show internal directories.
Click to hide internal directories.