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) interfaces.Dialer
- 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.DiscoveryReply) (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") )
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 ¶
func DialerFactory(verifier tls.Verifier) interfaces.Dialer
DialerFactory returns a new xmpp dialer
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.DiscoveryReply) (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.