events: update interface (#1954)

This commit is contained in:
ben-toogood
2020-08-20 09:29:29 +01:00
committed by GitHub
parent 47f356fc5f
commit 29e8cdbfe9
6 changed files with 36 additions and 158 deletions

View File

@@ -16,8 +16,8 @@ var (
// Stream of events
type Stream interface {
Publish(topic string, opts ...PublishOption) error
Subscribe(opts ...SubscribeOption) (<-chan Event, error)
Publish(topic string, msg interface{}, opts ...PublishOption) error
Subscribe(topic string, opts ...SubscribeOption) (<-chan Event, error)
}
// Store of events