Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶
HandlerFunc wraps a function as Handler
func (HandlerFunc) Handle ¶ added in v0.0.18
func (fn HandlerFunc) Handle(e Event) bool
Handle implements Handler HandleEvent method
type Registry ¶ added in v0.0.18
type Registry struct {
// contains filtered or unexported fields
}
Registry manages event handlers
func NewRegistry ¶ added in v0.0.18
func NewRegistry() *Registry
NewRegistry creates an event registry
func (*Registry) HandleFunc ¶ added in v0.0.18
func (r *Registry) HandleFunc(t Type, h HandlerFunc)
HandleFunc registers event handler func by type
Click to show internal directories.
Click to hide internal directories.