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
This commit is contained in:
Qais Patankar
2020-03-22 17:34:14 +00:00
committed by GitHub
parent 0e4973e15c
commit 2b7eab629d
17 changed files with 181 additions and 40 deletions

View File

@@ -0,0 +1,13 @@
// +build !noslack
package bridgemap
import (
bslack "github.com/42wim/matterbridge/bridge/slack"
)
func init() {
FullMap["slack-legacy"] = bslack.NewLegacy
FullMap["slack"] = bslack.New
UserTypingSupport["slack"] = struct{}{}
}