extensions

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 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

func NewReplyFallback(start uint64, end uint64) Fallback

NewReplyFallback initializes a fallback range

func (Fallback) Namespace added in v1.5.0

func (c Fallback) Namespace() string

Namespace is a namespace!

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

type IqVcardDesc struct {
	XMLName xml.Name `xml:"DESC"`
	Text    string   `xml:",chardata"`
}

IqVcardDesc is vCard/DESC

type IqVcardFn

type IqVcardFn struct {
	XMLName xml.Name `xml:"FN"`
	Text    string   `xml:",chardata"`
}

IqVcardFn is vCard/FN

type IqVcardN

type IqVcardN struct {
	XMLName xml.Name `xml:"N"`
	Family  IqVcardNFamily
	Given   IqVcardNGiven
	Middle  IqVcardNMiddle
}

IqVcardN is vCard/N

type IqVcardNFamily

type IqVcardNFamily struct {
	XMLName xml.Name `xml:"FAMILY"`
	Text    string   `xml:",chardata"`
}

IqVcardNFamily is vCard/N/FAMILY

type IqVcardNGiven

type IqVcardNGiven struct {
	XMLName xml.Name `xml:"GIVEN"`
	Text    string   `xml:",chardata"`
}

IqVcardNGiven is vCard/N/GIVEN

type IqVcardNMiddle

type IqVcardNMiddle struct {
	XMLName xml.Name `xml:"MIDDLE"`
	Text    string   `xml:",chardata"`
}

IqVcardNMiddle is vCard/N/MIDDLE

type IqVcardNickname

type IqVcardNickname struct {
	XMLName xml.Name `xml:"NICKNAME"`
	Text    string   `xml:",chardata"`
}

IqVcardNickname is vCard/NICKNAME

type IqVcardPhoto

type IqVcardPhoto struct {
	XMLName xml.Name `xml:"PHOTO"`
	Type    IqVcardPhotoType
	Binval  IqVcardPhotoBinval
}

IqVcardPhoto is vCard/PHOTO

type IqVcardPhotoBinval

type IqVcardPhotoBinval struct {
	XMLName xml.Name `xml:"BINVAL"`
	Text    string   `xml:",chardata"`
}

IqVcardPhotoBinval is vCard/PHOTO/BINVAL

type IqVcardPhotoType

type IqVcardPhotoType struct {
	XMLName xml.Name `xml:"TYPE"`
	Text    string   `xml:",chardata"`
}

IqVcardPhotoType is vCard/PHOTO/TYPE

type IqVcardTel

type IqVcardTel struct {
	XMLName xml.Name `xml:"TEL"`
	Number  IqVcardTelNumber
}

IqVcardTel is vCard/TEL

type IqVcardTelNumber

type IqVcardTelNumber struct {
	XMLName xml.Name `xml:"NUMBER"`
	Text    string   `xml:",chardata"`
}

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

func (IqVcardTemp) GetSet

func (c IqVcardTemp) GetSet() *stanza.ResultSet

GetSet getsets!

func (IqVcardTemp) Namespace

func (c IqVcardTemp) Namespace() string

Namespace is a namespace!

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

type QueryRegisterRegistered struct {
	XMLName xml.Name `xml:"registered"`
}

QueryRegisterRegistered is a child element from XEP-0077

type QueryRegisterRemove added in v1.8.0

type QueryRegisterRemove struct {
	XMLName xml.Name `xml:"remove"`
}

QueryRegisterRemove is a child element from XEP-0077

type Replace added in v1.6.0

type Replace struct {
	XMLName xml.Name `xml:"urn:xmpp:message-correct:0 replace"`
	Id      string   `xml:"id,attr"`
}

Replace is from XEP-0308

func (Replace) Namespace added in v1.6.0

func (c Replace) Namespace() string

Namespace is a namespace!

type Reply added in v1.5.0

type Reply struct {
	XMLName xml.Name `xml:"urn:xmpp:reply:0 reply"`
	To      string   `xml:"to,attr"`
	Id      string   `xml:"id,attr"`
}

Reply is from XEP-0461

func (Reply) Namespace added in v1.5.0

func (c Reply) Namespace() string

Namespace is a namespace!

Jump to

Keyboard shortcuts

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