diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-28 10:34:22 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-28 10:34:22 +0100 |
commit | 8668b12a811c79e4ea759616daf645080d7d763d (patch) | |
tree | e6dcf357abc9f73bbb8054a4cbad9e097c0f1256 /connector/xmpp | |
parent | 30a5cdc2a3088995a6ab1521d6b97715ec0a36f5 (diff) | |
download | easybridge-8668b12a811c79e4ea759616daf645080d7d763d.tar.gz easybridge-8668b12a811c79e4ea759616daf645080d7d763d.zip |
Rename DbCache to DbKv
Diffstat (limited to 'connector/xmpp')
-rw-r--r-- | connector/xmpp/config.go | 4 | ||||
-rw-r--r-- | connector/xmpp/xmpp.go | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/connector/xmpp/config.go b/connector/xmpp/config.go index a6abfac..a3a97ec 100644 --- a/connector/xmpp/config.go +++ b/connector/xmpp/config.go @@ -4,8 +4,10 @@ import ( . "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector" ) +const XMPP_PROTOCOL = "XMPP" + func init() { - Register("xmpp", Protocol{ + Register(XMPP_PROTOCOL, Protocol{ NewConnector: func() Connector { return &XMPP{} }, Schema: ConfigSchema{ &ConfigEntry{ diff --git a/connector/xmpp/xmpp.go b/connector/xmpp/xmpp.go index fb34361..dcf1db6 100644 --- a/connector/xmpp/xmpp.go +++ b/connector/xmpp/xmpp.go @@ -43,7 +43,7 @@ func (xm *XMPP) SetHandler(h Handler) { } func (xm *XMPP) Protocol() string { - return "xmpp" + return XMPP_PROTOCOL } func (xm *XMPP) Configure(c Configuration) error { |