mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2025-02-19 09:59:01 -08:00

The URL will be more permanent as this is a place we dedicate as short URL for our go projects.
19 lines
438 B
Go
19 lines
438 B
Go
package xmpp // import "gosrc.io/xmpp"
|
|
|
|
type Packet interface {
|
|
Name() string
|
|
}
|
|
|
|
// 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
|
|
}
|