Documentation
¶
Index ¶
- type CarbonReceived
- type CarbonSent
- type ClientMessage
- type ComponentPerm
- type ComponentPrivilege1
- type ComponentPrivilege2
- type EntityTime
- type Fallback
- type FallbackBody
- type FallbackSubject
- type IqVcardDesc
- type IqVcardFn
- type IqVcardN
- type IqVcardNFamily
- type IqVcardNGiven
- type IqVcardNMiddle
- type IqVcardNickname
- type IqVcardPhoto
- type IqVcardPhotoBinval
- type IqVcardPhotoType
- type IqVcardTel
- type IqVcardTelNumber
- type IqVcardTemp
- type PresenceNickExtension
- type PresenceXVCardUpdateExtension
- type PresenceXVCardUpdatePhoto
- type QueryRegister
- type QueryRegisterRegistered
- type QueryRegisterRemove
- type Replace
- type Reply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarbonReceived ¶ added in v1.5.0
type CarbonReceived struct {
XMLName xml.Name `xml:"urn:xmpp:carbons:2 received"`
Forwarded stanza.Forwarded `xml:"urn:xmpp:forward:0 forwarded"`
}
CarbonReceived is from XEP-0280
func (CarbonReceived) Namespace ¶ added in v1.5.0
func (c CarbonReceived) Namespace() string
Namespace is a namespace!
type CarbonSent ¶ added in v1.5.0
type CarbonSent struct {
XMLName xml.Name `xml:"urn:xmpp:carbons:2 sent"`
Forwarded stanza.Forwarded `xml:"urn:xmpp:forward:0 forwarded"`
}
CarbonSent is from XEP-0280
func (CarbonSent) Namespace ¶ added in v1.5.0
func (c CarbonSent) Namespace() string
Namespace is a namespace!
type ClientMessage ¶ added in v1.5.0
type ClientMessage struct {
XMLName xml.Name `xml:"jabber:client message"`
stanza.Attrs
Subject string `xml:"subject,omitempty"`
Body string `xml:"body,omitempty"`
Thread string `xml:"thread,omitempty"`
Error stanza.Err `xml:"error,omitempty"`
Extensions []stanza.MsgExtension `xml:",omitempty"`
}
ClientMessage is a jabber:client NS message compatible with Prosody's XEP-0356 implementation
func (ClientMessage) Name ¶ added in v1.5.0
func (ClientMessage) Name() string
Name is a packet name
type ComponentPerm ¶ added in v1.5.0
type ComponentPerm struct {
XMLName xml.Name `xml:"perm"`
Access string `xml:"access,attr"`
Type string `xml:"type,attr"`
Push bool `xml:"push,attr"`
}
ComponentPerm is from XEP-0356
type ComponentPrivilege1 ¶ added in v1.7.4
type ComponentPrivilege1 struct {
XMLName xml.Name `xml:"urn:xmpp:privilege:1 privilege"`
Perms []ComponentPerm `xml:"perm"`
Forwarded stanza.Forwarded `xml:"urn:xmpp:forward:0 forwarded"`
}
ComponentPrivilege is from XEP-0356
func (ComponentPrivilege1) Namespace ¶ added in v1.7.4
func (c ComponentPrivilege1) Namespace() string
Namespace is a namespace!
type ComponentPrivilege2 ¶ added in v1.7.4
type ComponentPrivilege2 struct {
XMLName xml.Name `xml:"urn:xmpp:privilege:2 privilege"`
Perms []ComponentPerm `xml:"perm"`
Forwarded stanza.Forwarded `xml:"urn:xmpp:forward:0 forwarded"`
}
ComponentPrivilege is from XEP-0356
func (ComponentPrivilege2) Namespace ¶ added in v1.7.4
func (c ComponentPrivilege2) Namespace() string
Namespace is a namespace!
type EntityTime ¶ added in v1.12.8
type EntityTime struct {
XMLName xml.Name `xml:"urn:xmpp:time time"`
Tzo string `xml:"tzo"`
Utc string `xml:"utc"`
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
}
EntityTime is from XEP-0202
func (EntityTime) GetSet ¶ added in v1.12.8
func (c EntityTime) GetSet() *stanza.ResultSet
GetSet getsets!
func (EntityTime) Namespace ¶ added in v1.12.8
func (c EntityTime) Namespace() string
Namespace is a namespace!
type Fallback ¶ added in v1.5.0
type Fallback struct {
XMLName xml.Name `xml:"urn:xmpp:fallback:0 fallback"`
For string `xml:"for,attr"`
Body []FallbackBody `xml:"urn:xmpp:fallback:0 body"`
Subject []FallbackSubject `xml:"urn:xmpp:fallback:0 subject"`
}
Fallback is from XEP-0428
func NewReplyFallback ¶ added in v1.5.0
NewReplyFallback initializes a fallback range
type FallbackBody ¶ added in v1.5.0
type FallbackBody struct {
XMLName xml.Name `xml:"urn:xmpp:fallback:0 body"`
Start string `xml:"start,attr"`
End string `xml:"end,attr"`
}
FallbackBody is from XEP-0428
type FallbackSubject ¶ added in v1.5.0
type FallbackSubject struct {
XMLName xml.Name `xml:"urn:xmpp:fallback:0 subject"`
Start string `xml:"start,attr"`
End string `xml:"end,attr"`
}
FallbackSubject is from XEP-0428
type IqVcardDesc ¶ added in v1.2.1
IqVcardDesc is vCard/DESC
type IqVcardN ¶
type IqVcardN struct {
XMLName xml.Name `xml:"N"`
Family IqVcardNFamily
Given IqVcardNGiven
Middle IqVcardNMiddle
}
IqVcardN is vCard/N
type IqVcardNFamily ¶
IqVcardNFamily is vCard/N/FAMILY
type IqVcardNGiven ¶
IqVcardNGiven is vCard/N/GIVEN
type IqVcardNMiddle ¶
IqVcardNMiddle is vCard/N/MIDDLE
type IqVcardNickname ¶
IqVcardNickname is vCard/NICKNAME
type IqVcardPhoto ¶
type IqVcardPhoto struct {
XMLName xml.Name `xml:"PHOTO"`
Type IqVcardPhotoType
Binval IqVcardPhotoBinval
}
IqVcardPhoto is vCard/PHOTO
type IqVcardPhotoBinval ¶
IqVcardPhotoBinval is vCard/PHOTO/BINVAL
type IqVcardPhotoType ¶
IqVcardPhotoType is vCard/PHOTO/TYPE
type IqVcardTel ¶
type IqVcardTel struct {
XMLName xml.Name `xml:"TEL"`
Number IqVcardTelNumber
}
IqVcardTel is vCard/TEL
type IqVcardTelNumber ¶
IqVcardTelNumber is vCard/TEL/NUMBER
type IqVcardTemp ¶
type IqVcardTemp struct {
XMLName xml.Name `xml:"vcard-temp vCard"`
Fn IqVcardFn
Nickname IqVcardNickname
N IqVcardN
Tel IqVcardTel
Photo IqVcardPhoto
Desc IqVcardDesc
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
}
IqVcardTemp is from XEP-0054
type PresenceNickExtension ¶
type PresenceNickExtension struct {
XMLName xml.Name `xml:"http://jabber.org/protocol/nick nick"`
Text string `xml:",chardata"`
}
PresenceNickExtension is from XEP-0172
func (PresenceNickExtension) Namespace ¶
func (c PresenceNickExtension) Namespace() string
Namespace is a namespace!
type PresenceXVCardUpdateExtension ¶
type PresenceXVCardUpdateExtension struct {
XMLName xml.Name `xml:"vcard-temp:x:update x"`
Photo PresenceXVCardUpdatePhoto
}
PresenceXVCardUpdateExtension is from XEP-0153
func (PresenceXVCardUpdateExtension) Namespace ¶
func (c PresenceXVCardUpdateExtension) Namespace() string
Namespace is a namespace!
type PresenceXVCardUpdatePhoto ¶
type PresenceXVCardUpdatePhoto struct {
XMLName xml.Name `xml:"photo"`
Text string `xml:",chardata"`
}
PresenceXVCardUpdatePhoto is from XEP-0153
type QueryRegister ¶ added in v1.8.0
type QueryRegister struct {
XMLName xml.Name `xml:"jabber:iq:register query"`
Instructions string `xml:"instructions"`
Username string `xml:"username"`
Registered *QueryRegisterRegistered `xml:"registered"`
Remove *QueryRegisterRemove `xml:"remove"`
ResultSet *stanza.ResultSet `xml:"set,omitempty"`
}
QueryRegister is from XEP-0077
func (QueryRegister) GetSet ¶ added in v1.8.0
func (c QueryRegister) GetSet() *stanza.ResultSet
GetSet getsets!
func (QueryRegister) Namespace ¶ added in v1.8.0
func (c QueryRegister) Namespace() string
Namespace is a namespace!
type QueryRegisterRegistered ¶ added in v1.8.0
QueryRegisterRegistered is a child element from XEP-0077
type QueryRegisterRemove ¶ added in v1.8.0
QueryRegisterRemove is a child element from XEP-0077