Documentation
¶
Index ¶
- type EventsHandler
- func (e *EventsHandler) GetHandler(t string) func(i interface{}) error
- func (e *EventsHandler) GetPreProcess(t string) func(i interface{}) bool
- func (e *EventsHandler) RegHandler(t string, handler func(i interface{}) error)
- func (e *EventsHandler) RegPreProcess(t string, preProcess func(i interface{}) bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventsHandler ¶
type EventsHandler struct {
// contains filtered or unexported fields
}
func NewEventsHandler ¶
func NewEventsHandler() *EventsHandler
func (*EventsHandler) GetHandler ¶
func (e *EventsHandler) GetHandler(t string) func(i interface{}) error
GetHandler 获取handler
func (*EventsHandler) GetPreProcess ¶
func (e *EventsHandler) GetPreProcess(t string) func(i interface{}) bool
GetPreProcess 获取PreProcess
func (*EventsHandler) RegHandler ¶
func (e *EventsHandler) RegHandler(t string, handler func(i interface{}) error)
RegHandler 注册handler
func (*EventsHandler) RegPreProcess ¶
func (e *EventsHandler) RegPreProcess(t string, preProcess func(i interface{}) bool)
RegPreProcess 注册预处理PreProcess
Click to show internal directories.
Click to hide internal directories.