1
0
mirror of https://github.com/eventials/goevents.git synced 2025-04-24 13:48:53 +08:00
eventials.goevents/consumer.go
2016-12-01 10:52:22 -02:00

11 lines
213 B
Go

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