Split Dispatcher interface and use it across application

This commit is contained in:
ErickSkrauch
2020-04-20 14:29:33 +03:00
parent f58b980948
commit 2ea4c55d37
5 changed files with 22 additions and 27 deletions

View File

@@ -1,5 +1,7 @@
package eventsubscribers
import "github.com/elyby/chrly/dispatcher"
type Subscriber interface {
Subscribe(topic string, fn interface{})
dispatcher.Subscriber
}