aboutsummaryrefslogtreecommitdiff
path: root/xmpp/component.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2019-10-29 04:23:57 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2019-10-29 04:23:57 +0300
commit7e036fd795cc0b5710d3b049dc98f4538c32da6a (patch)
treea759a474c5c1a3aafb5a44a416ca9989bbf2b1b2 /xmpp/component.go
parent695c9fc35325d3bec3ec81bdce59f780acd74e8d (diff)
golint
Diffstat (limited to 'xmpp/component.go')
-rw-r--r--xmpp/component.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmpp/component.go b/xmpp/component.go
index e484e99..d55ed6b 100644
--- a/xmpp/component.go
+++ b/xmpp/component.go
@@ -8,7 +8,9 @@ import (
"gosrc.io/xmpp"
)
-func NewComponent(conf config.XmppConfig) *xmpp.StreamManager {
+// NewComponent starts a new component and wraps it in
+// a stream manager that you should start yourself
+func NewComponent(conf config.XMPPConfig) *xmpp.StreamManager {
options := xmpp.ComponentOptions{
Address: conf.Host + ":" + conf.Port,
Domain: conf.Jid,