xmpp: mellium.im/xmpp/oob Index | Files

package oob

import "mellium.im/xmpp/oob"

Package oob implements XEP-0066: Out of Band Data.

Index

Package Files

oob.go

Constants

const (
    NS      = `jabber:x:oob`
    NSQuery = `jabber:iq:oob`
)

OOB namespaces provided as a convenience.

type Data Uses

type Data struct {
    XMLName xml.Name `xml:"jabber:x:oob x"`
    URL     string   `xml:"url"`
    Desc    string   `xml:"desc,omitempty"`
}

Data represents an OOB data node that might be placed in a message or presence stanza.

type IQ Uses

type IQ struct {
    stanza.IQ
    Query Query
}

IQ represents an OOB data query; for instance:

<iq type='set'
    from='feste@example.net/asegasd'
    to='malvolio@jabber.org/apkjase'
    id='asiepjg'>
  <query xmlns='jabber:iq:oob'>
    <url>https://xmpp.org/images/promo/xmpp_server_guide_2017.pdf</url>
    <desc>XMPP Server Setup Guide 2017</desc>
  </query>
</iq>

type Query Uses

type Query struct {
    XMLName xml.Name `xml:"jabber:iq:oob query"`
    URL     string   `xml:"url"`
    Desc    string   `xml:"desc,omitempty"`
}

Query represents an OOB data node that might be placed in an IQ stanza.

Package oob imports 2 packages (graph) and is imported by 1 packages. Updated 2018-09-28. Refresh now. Tools for package owners.