Documentation ¶
Overview ¶
Package delay implements delayed delivery of stanzas.
Index ¶
Constants ¶
View Source
const NS = "urn:xmpp:delay"
NS is the namespace used by this package.
Variables ¶
This section is empty.
Functions ¶
func Insert ¶
func Insert(d Delay) xmlstream.Transformer
Insert adds a delay into any element read through the transformer at the current nesting level.
Types ¶
type Delay ¶
type Delay struct { XMLName xml.Name `xml:"urn:xmpp:delay delay"` From jid.JID `xml:"from,attr,omitempty"` Time time.Time `xml:"stamp,attr"` Reason string `xml:",chardata"` }
Delay is a type that can be added to stanzas to indicate that they have been delivered with a delay.
func (Delay) MarshalXML ¶
MarshalXML implements xml.Marshaler.
func (Delay) TokenReader ¶
func (d Delay) TokenReader() xml.TokenReader
TokenReader implements xmlstream.Marshaler.
func (*Delay) UnmarshalXML ¶
UnmarshalXML implements xml.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.