xmpp

package
v0.4.0-el1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2021 License: GPL-3.0 Imports: 35 Imported by: 14

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

View Source
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

View Source
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")
)
View Source
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")
)
View Source
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, connFactory tls.Factory) interfaces.Dialer

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 ParsePong

func ParsePong(reply data.Stanza) error

ParsePong parse a reply of a Pong response.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL