neoneo-go/pkg/pubsub/sub.go

8 lines
134 B
Go
Raw Normal View History

2019-02-25 22:44:14 +00:00
package pubsub
// Subscriber will listen for Events from publishers
2019-02-25 22:44:14 +00:00
type Subscriber interface {
Topics() []EventType
Emit(Event)
}