aboutsummaryrefslogtreecommitdiff
path: root/connector/mattermost
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-28 10:34:22 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-28 10:34:22 +0100
commit8668b12a811c79e4ea759616daf645080d7d763d (patch)
treee6dcf357abc9f73bbb8054a4cbad9e097c0f1256 /connector/mattermost
parent30a5cdc2a3088995a6ab1521d6b97715ec0a36f5 (diff)
downloadeasybridge-8668b12a811c79e4ea759616daf645080d7d763d.tar.gz
easybridge-8668b12a811c79e4ea759616daf645080d7d763d.zip
Rename DbCache to DbKv
Diffstat (limited to 'connector/mattermost')
-rw-r--r--connector/mattermost/config.go4
-rw-r--r--connector/mattermost/mattermost.go2
2 files changed, 4 insertions, 2 deletions
diff --git a/connector/mattermost/config.go b/connector/mattermost/config.go
index dd3bbbb..3be8f67 100644
--- a/connector/mattermost/config.go
+++ b/connector/mattermost/config.go
@@ -4,8 +4,10 @@ import (
. "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector"
)
+const MATTERMOST_PROTOCOL = "Mattermost"
+
func init() {
- Register("mattermost", Protocol{
+ Register(MATTERMOST_PROTOCOL, Protocol{
NewConnector: func() Connector { return &Mattermost{} },
Schema: ConfigSchema{
&ConfigEntry{
diff --git a/connector/mattermost/mattermost.go b/connector/mattermost/mattermost.go
index 530938c..12ac604 100644
--- a/connector/mattermost/mattermost.go
+++ b/connector/mattermost/mattermost.go
@@ -49,7 +49,7 @@ func (mm *Mattermost) SetHandler(h Handler) {
}
func (mm *Mattermost) Protocol() string {
- return "mattermost"
+ return MATTERMOST_PROTOCOL
}
func (mm *Mattermost) Configure(c Configuration) error {