mirror of
https://github.com/FluuxIO/go-xmpp
synced 2024-11-05 12:00:50 +00:00
20 lines
396 B
Go
20 lines
396 B
Go
package xmpp // import "gosrc.io/xmpp"
|
|
|
|
import "encoding/xml"
|
|
|
|
/*
|
|
Support for:
|
|
- XEP-0066 - Out of Band Data: https://xmpp.org/extensions/xep-0066.html
|
|
*/
|
|
|
|
type OOB struct {
|
|
MsgExtension
|
|
XMLName xml.Name `xml:"jabber:x:oob x"`
|
|
URL string `xml:"url"`
|
|
Desc string `xml:"desc,omitempty"`
|
|
}
|
|
|
|
func init() {
|
|
TypeRegistry.MapExtension(PKTMessage, xml.Name{"jabber:x:oob", "x"}, OOB{})
|
|
}
|