From 265457b45171dcae96a1aac9454e3bda2cd0557a Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 19 Dec 2017 23:15:03 +0100 Subject: Refactor and add MediaDownloadSize to General --- bridge/config/config.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bridge/config') 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 { -- cgit v1.2.3