2019-06-26 15:14:52 +00:00
|
|
|
package stanza
|
2016-01-06 15:51:12 +00:00
|
|
|
|
2018-01-13 17:50:17 +00:00
|
|
|
type Packet interface {
|
|
|
|
Name() string
|
|
|
|
}
|
|
|
|
|
2019-06-22 09:13:33 +00: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"`
|
|
|
|
Lang string `xml:"lang,attr,omitempty"`
|
2016-01-06 15:51:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type packetFormatter interface {
|
|
|
|
XMPPFormat() string
|
|
|
|
}
|