sum7
/
yaja
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
yaja/xmpp/compression.go

31 lines
1.2 KiB
Go

package xmpp
import "encoding/xml"
// CompressionFeature implements XEP-0138: Stream Compression - 10.1 Stream Feature
type CompressionFeature struct {
XMLName xml.Name `xml:"http://jabber.org/features/compress compression"`
Methods []string `xml:"method"`
}
// CompressionCompress implements XEP-0138: Stream Compression - 10.2 Protocol Namespace
type CompressionCompress struct {
XMLName xml.Name `xml:"http://jabber.org/protocol/compress compress"`
Methods []string `xml:"method"`
}
// CompressionCompressed implements XEP-0138: Stream Compression - 10.2 Protocol Namespace
type CompressionCompressed struct {
XMLName xml.Name `xml:"http://jabber.org/protocol/compress compressed"`
}
// CompressionFailure implements XEP-0138: Stream Compression - 10.2 Protocol Namespace
type CompressionFailure struct {
XMLName xml.Name `xml:"http://jabber.org/protocol/compress failure"`
SetupFailed *xml.Name `xml:"http://jabber.org/protocol/compress setup-failed"`
ProcessingFailed *xml.Name `xml:"http://jabber.org/protocol/compress processing-failed"`
UnsupportedFailed *xml.Name `xml:"http://jabber.org/protocol/compress unsupported-failed"`
Text *Text
StanzaErrorGroup
}