diff options
author | Patrick Connolly <patrick.c.connolly@gmail.com> | 2018-12-01 06:53:00 +0800 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-30 23:53:00 +0100 |
commit | f2088a687edd53e9e797f3b8941210ca3650cc45 (patch) | |
tree | 7a2adb7522e9696873fd734e4abb255759ba3b5e /gateway/bridgemap | |
parent | faeeee29482ffd23d26398bcaddea8dc885bc468 (diff) | |
download | matterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.tar.gz matterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.tar.bz2 matterbridge-msglm-f2088a687edd53e9e797f3b8941210ca3650cc45.zip |
Extract bridgeMap into own package to improve testability (#601)
Diffstat (limited to 'gateway/bridgemap')
-rw-r--r-- | gateway/bridgemap/bridgemap.go | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gateway/bridgemap/bridgemap.go b/gateway/bridgemap/bridgemap.go new file mode 100644 index 00000000..20577dc1 --- /dev/null +++ b/gateway/bridgemap/bridgemap.go @@ -0,0 +1,35 @@ +package bridgemap + +import ( + "github.com/42wim/matterbridge/bridge" + "github.com/42wim/matterbridge/bridge/api" + "github.com/42wim/matterbridge/bridge/discord" + "github.com/42wim/matterbridge/bridge/gitter" + "github.com/42wim/matterbridge/bridge/irc" + "github.com/42wim/matterbridge/bridge/matrix" + "github.com/42wim/matterbridge/bridge/mattermost" + "github.com/42wim/matterbridge/bridge/rocketchat" + "github.com/42wim/matterbridge/bridge/slack" + "github.com/42wim/matterbridge/bridge/sshchat" + "github.com/42wim/matterbridge/bridge/steam" + "github.com/42wim/matterbridge/bridge/telegram" + "github.com/42wim/matterbridge/bridge/xmpp" + "github.com/42wim/matterbridge/bridge/zulip" +) + +var FullMap = map[string]bridge.Factory{ + "api": api.New, + "discord": bdiscord.New, + "gitter": bgitter.New, + "irc": birc.New, + "mattermost": bmattermost.New, + "matrix": bmatrix.New, + "rocketchat": brocketchat.New, + "slack-legacy": bslack.NewLegacy, + "slack": bslack.New, + "sshchat": bsshchat.New, + "steam": bsteam.New, + "telegram": btelegram.New, + "xmpp": bxmpp.New, + "zulip": bzulip.New, +} |