2018-01-01 17:12:33 +00:00
|
|
|
package xmpp // import "fluux.io/xmpp"
|
2016-01-06 15:51:12 +00:00
|
|
|
|
2018-01-13 16:54:07 +00:00
|
|
|
// PacketAttrs represents the common structure for base XMPP packets.
|
|
|
|
type PacketAttrs struct {
|
2016-01-06 15:51:12 +00:00
|
|
|
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
|
|
|
|
}
|