diff options
author | Wim <wim@42.be> | 2016-09-30 23:19:47 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-09-30 23:19:47 +0200 |
commit | fff6f08cb63cde691a3d5fb8f1c109cbdb470c58 (patch) | |
tree | 3f6e7f0ec55ff2f8e02427b6e579daf840ce42b6 /bridge/config/config.go | |
parent | 0e527a4252796c5f9615edc9412394bc4805e78a (diff) | |
download | matterbridge-msglm-fff6f08cb63cde691a3d5fb8f1c109cbdb470c58.tar.gz matterbridge-msglm-fff6f08cb63cde691a3d5fb8f1c109cbdb470c58.tar.bz2 matterbridge-msglm-fff6f08cb63cde691a3d5fb8f1c109cbdb470c58.zip |
Add samechannel gateway. See #35
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r-- | bridge/config/config.go | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index 290108af..7d4b0cd1 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -56,14 +56,22 @@ type Gateway struct { Out []Bridge } +type SameChannelGateway struct { + Name string + Enable bool + Channels []string + Accounts []string +} + type Config struct { - IRC map[string]Protocol - Mattermost map[string]Protocol - Slack map[string]Protocol - Gitter map[string]Protocol - Xmpp map[string]Protocol - Discord map[string]Protocol - Gateway []Gateway + IRC map[string]Protocol + Mattermost map[string]Protocol + Slack map[string]Protocol + Gitter map[string]Protocol + Xmpp map[string]Protocol + Discord map[string]Protocol + Gateway []Gateway + SameChannelGateway []SameChannelGateway } func NewConfig(cfgfile string) *Config { |