mirror of
https://github.com/elyby/chrly.git
synced 2024-08-25 22:30:01 +05:30
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{})
|
|
}
|