Documentation ¶
Index ¶
- func MakeDelayMessage(stanza stravaganza.Stanza, stamp time.Time, from, text string) *stravaganza.Message
- func MakeErrorStanza(stanza stravaganza.Stanza, errReason stanzaerror.Reason) stravaganza.Stanza
- func MakeForwardedStanza(stanza stravaganza.Stanza, stamp *time.Time) stravaganza.Element
- func MakePresence(fromJID, toJID *jid.JID, typ string, children []stravaganza.Element) *stravaganza.Presence
- func MakeResultIQ(iq *stravaganza.IQ, queryChild stravaganza.Element) *stravaganza.IQ
- func MakeStanzaIDMessage(originalMsg *stravaganza.Message, stanzaID, by string) *stravaganza.Message
- func MessageStanzaID(msg *stravaganza.Message) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDelayMessage ¶
func MakeDelayMessage(stanza stravaganza.Stanza, stamp time.Time, from, text string) *stravaganza.Message
MakeDelayMessage creates a new message adding delayed information.
func MakeErrorStanza ¶
func MakeErrorStanza(stanza stravaganza.Stanza, errReason stanzaerror.Reason) stravaganza.Stanza
MakeErrorStanza creates an error stanza using errReason as reason.
func MakeForwardedStanza ¶ added in v0.62.0
func MakeForwardedStanza(stanza stravaganza.Stanza, stamp *time.Time) stravaganza.Element
MakeForwardedStanza creates a new forwarded element derived from the passed stanza.
func MakePresence ¶
func MakePresence(fromJID, toJID *jid.JID, typ string, children []stravaganza.Element) *stravaganza.Presence
MakePresence creates presence of type typ using fromJID and toJID addresses.
func MakeResultIQ ¶
func MakeResultIQ(iq *stravaganza.IQ, queryChild stravaganza.Element) *stravaganza.IQ
MakeResultIQ creates a new result stanza derived from iq.
func MakeStanzaIDMessage ¶ added in v0.62.0
func MakeStanzaIDMessage(originalMsg *stravaganza.Message, stanzaID, by string) *stravaganza.Message
MakeStanzaIDMessage creates and returns a new message containing a stanza-id element.
func MessageStanzaID ¶ added in v0.62.0
func MessageStanzaID(msg *stravaganza.Message) string
MessageStanzaID returns the stanza-id value contained in msg parameter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.