1
0
mirror of https://github.com/eventials/goevents.git synced 2025-05-09 19:29:27 +08:00
2016-12-01 11:40:58 -02:00

11 lines
216 B
Go

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