Documentation ¶
Overview ¶
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121. Ping implements the XMPP extension Ping, as specified in xep-0199
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Package xmpp implements the XMPP IM protocol, as specified in RFC 6120 and 6121.
Index ¶
- Constants
- Variables
- func DialerFactory(verifier tls.Verifier, connFactory tls.Factory) interfaces.Dialer
- func DiscoveryReply(name string) data.DiscoveryInfoQuery
- func GetCipherSuiteName(tlsState tls.ConnectionState) string
- func GetTLSVersion(tlsState tls.ConnectionState) string
- func NewConn(in *xml.Decoder, out io.WriteCloser, jid string) interfaces.Conn
- func ParsePong(reply data.Stanza) error
- func Resolve(domain string) (hostport []string, err error)
- func ResolveSRVWithProxy(proxy proxy.Dialer, domain string) (hostport []string, err error)
- func VerificationString(r *data.DiscoveryInfoQuery) (string, error)
Constants ¶
const ( NsStream = "http://etherx.jabber.org/streams" NsTLS = "urn:ietf:params:xml:ns:xmpp-tls" NsSASL = "urn:ietf:params:xml:ns:xmpp-sasl" NsBind = "urn:ietf:params:xml:ns:xmpp-bind" NsSession = "urn:ietf:params:xml:ns:xmpp-session" NsClient = "jabber:client" )
These constants represent the different namespaces used in standard XMPP
Variables ¶
var ( ErrUsernameConflict = errors.New("xmpp: the username is not available for registration") ErrMissingRequiredRegistrationInfo = errors.New("xmpp: missing required registration information") ErrRegistrationFailed = errors.New("xmpp: account creation failed") ErrWrongCaptcha = errors.New("xmpp: the captcha entered is wrong") ErrResourceConstraint = errors.New("xmpp: already reached the configured number of allowable resources") )
Various errors signalled by the registration component
var ( // ErrServiceNotAvailable means that the service is decidedly not available at this domain ErrServiceNotAvailable = errors.New("service not available") )
Functions ¶
func DialerFactory ¶
DialerFactory returns a new xmpp dialer
func DiscoveryReply ¶ added in v0.3.9
func DiscoveryReply(name string) data.DiscoveryInfoQuery
DiscoveryReply returns a minimum reply to a http://jabber.org/protocol/disco#info query
func GetCipherSuiteName ¶
func GetCipherSuiteName(tlsState tls.ConnectionState) string
GetCipherSuiteName returns a human readable string of the cipher suite used in the state
func GetTLSVersion ¶
func GetTLSVersion(tlsState tls.ConnectionState) string
GetTLSVersion returns a human readable string of the TLS version used in the state
func NewConn ¶
func NewConn(in *xml.Decoder, out io.WriteCloser, jid string) interfaces.Conn
NewConn creates a new connection TODO: this is used only for testing. Remove when we have a Conn interface
func ResolveSRVWithProxy ¶
ResolveSRVWithProxy performs a DNS SRV lookup for the xmpp server that serves the given domain over the given proxy
func VerificationString ¶
func VerificationString(r *data.DiscoveryInfoQuery) (string, error)
VerificationString returns a SHA-1 verification string as defined in XEP-0115. See http://xmpp.org/extensions/xep-0115.html#ver
Types ¶
This section is empty.