mirror of https://github.com/FluuxIO/go-xmpp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
422 B
Go
19 lines
422 B
Go
5 years ago
|
package stanza
|
||
9 years ago
|
|
||
7 years ago
|
type Packet interface {
|
||
|
Name() string
|
||
|
}
|
||
|
|
||
5 years ago
|
// 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"`
|
||
9 years ago
|
}
|
||
|
|
||
|
type packetFormatter interface {
|
||
|
XMPPFormat() string
|
||
|
}
|