mirror of
https://github.com/elyby/chrly.git
synced 2024-12-29 00:10:19 +05:30
49a1aaada0
Introduce Subscriber interface to make eventsubscriber package independent of package dispatcher.
6 lines
97 B
Go
6 lines
97 B
Go
package eventsubscribers
|
|
|
|
type Subscriber interface {
|
|
Subscribe(topic string, fn interface{})
|
|
}
|