diff options
Diffstat (limited to 'gateway/router.go')
-rw-r--r-- | gateway/router.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gateway/router.go b/gateway/router.go index 1ea3f940..030b7b1e 100644 --- a/gateway/router.go +++ b/gateway/router.go @@ -11,13 +11,14 @@ import ( ) type Router struct { - Gateways map[string]*Gateway - Message chan config.Message + Gateways map[string]*Gateway + Message chan config.Message + MattermostPlugin chan config.Message *config.Config } func NewRouter(cfg *config.Config) (*Router, error) { - r := &Router{Message: make(chan config.Message), Gateways: make(map[string]*Gateway), Config: cfg} + r := &Router{Message: make(chan config.Message), MattermostPlugin: make(chan config.Message), Gateways: make(map[string]*Gateway), Config: cfg} sgw := samechannelgateway.New(cfg) gwconfigs := sgw.GetConfig() |