mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 10:42:14 +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{})
|
|
}
|