mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-24 11:32:00 -08:00
15 lines
396 B
Go
15 lines
396 B
Go
package xmpp // import "fluux.io/xmpp"
|
|
|
|
// PacketAttrs represents the common structure for base XMPP packets.
|
|
type PacketAttrs 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
|
|
}
|