xmpputil

package
v0.62.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL