1
0
mirror of https://github.com/eventials/goevents.git synced 2025-04-26 13:48:59 +08:00
2016-12-28 09:20:29 -02:00

11 lines
203 B
Go

package messaging
type EventHandler func(body []byte) bool
type Consumer interface {
Subscribe(action string, handler EventHandler) error
Unsubscribe(action string) error
Consume() error
Close()
}