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, node string) interface{}
- 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 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 is an error signaled during account registration, when the username is not available ErrUsernameConflict = errors.New("xmpp: the username is not available for registration") // ErrMissingRequiredRegistrationInfo is an error signaled during account registration, when some required registration information is missing ErrMissingRequiredRegistrationInfo = errors.New("xmpp: missing required registration information") // ErrRegistrationFailed is an error signaled during account registration, when account creation failed ErrRegistrationFailed = errors.New("xmpp: account creation failed") // ErrWrongCaptcha is an error signaled during account registration, when the captcha entered is wrong ErrWrongCaptcha = errors.New("xmpp: the captcha entered is wrong") // ErrResourceConstraint is an error signaled during account registration, when the configured number of allowable resources is reached ErrResourceConstraint = errors.New("xmpp: already reached the configured number of allowable resources") )
var ( // ErrNotAllowed is an error signaled during password change, when the server does not allow password change ErrNotAllowed = errors.New("xmpp: server does not allow password change") // ErrNotAuthorized is an error signaled during password change, when password change is not authorized ErrNotAuthorized = errors.New("xmpp: password change not authorized") // ErrBadRequest is an error signaled during password change, when the request is malformed ErrBadRequest = errors.New("xmpp: malformed password change request") // ErrUnexpectedRequest is an error signaled during password change, when the user is not registered in the server ErrUnexpectedRequest = errors.New("xmpp: user is not registered in the server") // ErrChangePasswordFailed is an error signaled during password change, when it fails ErrChangePasswordFailed = errors.New("xmpp: password change failed") )
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, node string) interface{}
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 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.