summaryrefslogtreecommitdiffstats
path: root/gateway/bridgemap/bridgemap.go
diff options
context:
space:
mode:
authorQais Patankar <qaisjp@gmail.com>2020-03-22 17:34:14 +0000
committerGitHub <noreply@github.com>2020-03-22 18:34:14 +0100
commit2b7eab629d959b10388d21cf6242fdfbdbe0e197 (patch)
treebe67fc524025928e2a99bfc1b67b5ed478e118c7 /gateway/bridgemap/bridgemap.go
parent0e4973e15c2a13455953bd72c9521cd9db88de64 (diff)
downloadmatterbridge-msglm-2b7eab629d959b10388d21cf6242fdfbdbe0e197.tar.gz
matterbridge-msglm-2b7eab629d959b10388d21cf6242fdfbdbe0e197.tar.bz2
matterbridge-msglm-2b7eab629d959b10388d21cf6242fdfbdbe0e197.zip
Add support for build tags (#1054)
By default all bridges are available. You can turn off certain bridges by providing e.g. "nodiscord" as a build tag. go build -tags nomsteams,noapi
Diffstat (limited to 'gateway/bridgemap/bridgemap.go')
-rw-r--r--gateway/bridgemap/bridgemap.go42
1 files changed, 2 insertions, 40 deletions
diff --git a/gateway/bridgemap/bridgemap.go b/gateway/bridgemap/bridgemap.go
index 88d777b6..88514695 100644
--- a/gateway/bridgemap/bridgemap.go
+++ b/gateway/bridgemap/bridgemap.go
@@ -2,47 +2,9 @@ package bridgemap
import (
"github.com/42wim/matterbridge/bridge"
- "github.com/42wim/matterbridge/bridge/api"
- bdiscord "github.com/42wim/matterbridge/bridge/discord"
- bgitter "github.com/42wim/matterbridge/bridge/gitter"
- birc "github.com/42wim/matterbridge/bridge/irc"
- bkeybase "github.com/42wim/matterbridge/bridge/keybase"
- bmatrix "github.com/42wim/matterbridge/bridge/matrix"
- bmattermost "github.com/42wim/matterbridge/bridge/mattermost"
- bmsteams "github.com/42wim/matterbridge/bridge/msteams"
- brocketchat "github.com/42wim/matterbridge/bridge/rocketchat"
- bslack "github.com/42wim/matterbridge/bridge/slack"
- bsshchat "github.com/42wim/matterbridge/bridge/sshchat"
- bsteam "github.com/42wim/matterbridge/bridge/steam"
- btelegram "github.com/42wim/matterbridge/bridge/telegram"
- bwhatsapp "github.com/42wim/matterbridge/bridge/whatsapp"
- bxmpp "github.com/42wim/matterbridge/bridge/xmpp"
- bzulip "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,
- "whatsapp": bwhatsapp.New,
- "xmpp": bxmpp.New,
- "zulip": bzulip.New,
- "keybase": bkeybase.New,
- "msteams": bmsteams.New,
- }
-
- UserTypingSupport = map[string]struct{}{
- "slack": {},
- "discord": {},
- }
+ FullMap = map[string]bridge.Factory{}
+ UserTypingSupport = map[string]struct{}{}
)