diff options
author | Wim <wim@42.be> | 2017-02-18 23:10:22 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-02-18 23:13:46 +0100 |
commit | 73f01ad8d813505c6309fe568d0abc597cff8790 (patch) | |
tree | 426bc1779c1abcf2afe56e2dc2a2f43d70aae278 /bridge/config/config.go | |
parent | 930b639cc9cd2d2873302f30303378c0e53816a8 (diff) | |
download | matterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.tar.gz matterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.tar.bz2 matterbridge-msglm-73f01ad8d813505c6309fe568d0abc597cff8790.zip |
Add REST API support
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r-- | bridge/config/config.go | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index 811c97ae..4f6568ab 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -6,6 +6,7 @@ import ( "os" "reflect" "strings" + "time" ) const ( @@ -14,16 +15,19 @@ const ( ) type Message struct { - Text string - Channel string - Username string - Avatar string - Account string - Event string + Text string + Channel string + Username string + Avatar string + Account string + Event string + Protocol string + Timestamp time.Time } type Protocol struct { BindAddress string // mattermost, slack + Buffer int // api IconURL string // mattermost, slack IgnoreNicks string // all protocols Jid string // xmpp @@ -79,6 +83,7 @@ type SameChannelGateway struct { } type Config struct { + Api map[string]Protocol IRC map[string]Protocol Mattermost map[string]Protocol Slack map[string]Protocol |