mirror of
https://github.com/elyby/chrly.git
synced 2024-11-27 01:01:59 +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{})
|
|
}
|