gonews/eventer/handler.go

11 lines
301 B
Go
Raw Permalink Normal View History

2019-09-02 19:51:38 +05:00
package eventer
// EventHandler represents generic event handler.
type EventHandler struct {
// Command is a command name we will use for event registering,
// showing help, etc.
Command string
// Handler if a function that will handle this command.
Handler func(data interface{}) interface{}
}