2026-07-17 17:18:21 +01:00
|
|
|
package stanza
|
|
|
|
|
|
|
|
|
|
type Packet interface {
|
|
|
|
|
Name() string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 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"`
|
2026-10-11 12:08:38 +01:00
|
|
|
Lang string `xml:"xml:lang,attr,omitempty"`
|
2026-07-17 17:18:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type packetFormatter interface {
|
|
|
|
|
XMPPFormat() string
|
|
|
|
|
}
|