From 2b7eab629d959b10388d21cf6242fdfbdbe0e197 Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Sun, 22 Mar 2020 17:34:14 +0000 Subject: 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 --- gateway/bridgemap/brocketchat.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 gateway/bridgemap/brocketchat.go (limited to 'gateway/bridgemap/brocketchat.go') diff --git a/gateway/bridgemap/brocketchat.go b/gateway/bridgemap/brocketchat.go new file mode 100644 index 00000000..6af4e8d3 --- /dev/null +++ b/gateway/bridgemap/brocketchat.go @@ -0,0 +1,11 @@ +// +build !norocketchat + +package bridgemap + +import ( + brocketchat "github.com/42wim/matterbridge/bridge/rocketchat" +) + +func init() { + FullMap["rocketchat"] = brocketchat.New +} -- cgit v1.2.3