summaryrefslogtreecommitdiffstats
path: root/bridge/config/config.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-04-01 17:24:19 +0200
committerWim <wim@42.be>2017-04-01 17:24:19 +0200
commita16ad8bf3b39d99658f306d3c065680c606e4801 (patch)
tree370528dd84572928161f4eff988f738581394ac0 /bridge/config/config.go
parent1e0490bd36ec20a7de43587f43feb6ec63c02ddb (diff)
downloadmatterbridge-msglm-a16ad8bf3b39d99658f306d3c065680c606e4801.tar.gz
matterbridge-msglm-a16ad8bf3b39d99658f306d3c065680c606e4801.tar.bz2
matterbridge-msglm-a16ad8bf3b39d99658f306d3c065680c606e4801.zip
Reuse connection when using same bridge with another gateway. See #87
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r--bridge/config/config.go19
1 files changed, 11 insertions, 8 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go
index f48da10f..564ebddb 100644
--- a/bridge/config/config.go
+++ b/bridge/config/config.go
@@ -26,11 +26,13 @@ type Message struct {
}
type ChannelInfo struct {
- Name string
- Account string
- Direction string
- ID string
- Options ChannelOptions
+ Name string
+ Account string
+ Direction string
+ ID string
+ GID map[string]bool
+ SameChannel map[string]bool
+ Options ChannelOptions
}
type Protocol struct {
@@ -71,9 +73,10 @@ type ChannelOptions struct {
}
type Bridge struct {
- Account string
- Channel string
- Options ChannelOptions
+ Account string
+ Channel string
+ Options ChannelOptions
+ SameChannel bool
}
type Gateway struct {