Documentation
¶
Index ¶
- Constants
- func Close(component *xmpp.Component)
- func HandleIq(s xmpp.Sender, p stanza.Packet)
- func HandleMessage(s xmpp.Sender, p stanza.Packet)
- func HandlePresence(s xmpp.Sender, p stanza.Packet)
- func NewComponent(conf config.XMPPConfig, tc config.TelegramConfig, idsPath string) (*xmpp.StreamManager, *xmpp.Component, error)
- func SaveSessions()
Constants ¶
View Source
const ( B uint64 = 1 KB = B << 10 MB = KB << 10 GB = MB << 10 TB = GB << 10 PB = TB << 10 EB = PB << 10 )
View Source
const ( TypeVCardTemp byte = iota TypeVCard4 )
View Source
const NodeVCard4 string = "urn:xmpp:vcard4"
Variables ¶
This section is empty.
Functions ¶
func HandleMessage ¶
HandleMessage processes an incoming XMPP message
func HandlePresence ¶
HandlePresence processes an incoming XMPP presence
func NewComponent ¶
func NewComponent(conf config.XMPPConfig, tc config.TelegramConfig, idsPath string) (*xmpp.StreamManager, *xmpp.Component, error)
NewComponent starts a new component and wraps it in a stream manager that you should start yourself
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.