mirror of
https://github.com/eventials/goevents.git
synced 2025-04-26 13:48:59 +08:00
11 lines
203 B
Go
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()
|
|
}
|