diff options
Diffstat (limited to 'bridge/config')
-rw-r--r-- | bridge/config/config.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index 6344fa59..10f1d5f0 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -60,6 +60,7 @@ type Protocol struct { IgnoreMessages string // all protocols Jid string // xmpp Login string // mattermost, matrix + MediaDownloadSize int // all protocols MediaServerDownload string MediaServerUpload string MessageDelay int // IRC, time in millisecond to wait between messages @@ -147,6 +148,13 @@ type Config struct { SameChannelGateway []SameChannelGateway } +type BridgeConfig struct { + Config Protocol + General *Protocol + Account string + Remote chan Message +} + func NewConfig(cfgfile string) *Config { var cfg Config if _, err := toml.DecodeFile(cfgfile, &cfg); err != nil { |