2016-01-06 07:51:12 -08:00
|
|
|
package xmpp
|
|
|
|
|
2016-02-15 02:08:54 -08:00
|
|
|
// Packet represents the root default structure for an XMPP packet.
|
2016-01-06 07:51:12 -08:00
|
|
|
type Packet struct {
|
|
|
|
Id string `xml:"id,attr,omitempty"`
|
|
|
|
From string `xml:"from,attr,omitempty"`
|
|
|
|
To string `xml:"to,attr,omitempty"`
|
|
|
|
Type string `xml:"type,attr,omitempty"`
|
|
|
|
Lang string `xml:"lang,attr,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type packetFormatter interface {
|
|
|
|
XMPPFormat() string
|
|
|
|
}
|