diff options
Diffstat (limited to 'gateway/router.go')
-rw-r--r-- | gateway/router.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gateway/router.go b/gateway/router.go index 13e8ddd8..e4478d84 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -12,14 +12,16 @@ import ( type Router struct { config.Config + BridgeMap map[string]bridge.Factory Gateways map[string]*Gateway Message chan config.Message MattermostPlugin chan config.Message } -func NewRouter(cfg config.Config) (*Router, error) { +func NewRouter(cfg config.Config, bridgeMap map[string]bridge.Factory) (*Router, error) { r := &Router{ Config: cfg, + BridgeMap: bridgeMap, Message: make(chan config.Message), MattermostPlugin: make(chan config.Message), Gateways: make(map[string]*Gateway), |