2019-06-26 08:14:52 -07:00
|
|
|
package stanza
|
2016-01-06 07:51:12 -08:00
|
|
|
|
2018-01-13 09:50:17 -08:00
|
|
|
type Packet interface {
|
|
|
|
Name() string
|
|
|
|
}
|
|
|
|
|
2019-06-22 02:13:33 -07:00
|
|
|
// Attrs represents the common structure for base XMPP packets.
|
|
|
|
type Attrs struct {
|
|
|
|
Type StanzaType `xml:"type,attr,omitempty"`
|
|
|
|
Id string `xml:"id,attr,omitempty"`
|
|
|
|
From string `xml:"from,attr,omitempty"`
|
|
|
|
To string `xml:"to,attr,omitempty"`
|
2021-01-20 06:24:46 -08:00
|
|
|
Lang string `xml:"http://www.w3.org/XML/1998/namespace lang,attr,omitempty"`
|
2016-01-06 07:51:12 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
type packetFormatter interface {
|
|
|
|
XMPPFormat() string
|
|
|
|
}
|