Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C2S ¶
type C2S interface { // ID returns C2S stream identifier. ID() C2SID // SetValue sets a stream context value. SetValue(ctx context.Context, k, val string) error // Value returns stream context value associated to cKey. Value(cKey string) string // JID returns stream associated jid or nil if none is set. JID() *jid.JID // Username returns stream associated username. Username() string // Domain returns stream associated domain. Domain() string // Resource returns stream associated resource. Resource() string // Presence returns stream associated presence stanza or nil if none is set. Presence() *stravaganza.Presence // SendElement writes element string representation to the underlying stream transport. SendElement(elem stravaganza.Element) <-chan error // Disconnect performs disconnection over the stream. Disconnect(streamErr *streamerror.Error) <-chan error // Done returns a channel that's closed when stream transport and all associated resources have been released. Done() <-chan struct{} }
C2S represents a client-to-server XMPP stream.
type DialbackResult ¶
type DialbackResult struct { // Valid tells whether dialback validation was successfully completed. Valid bool // Error contains dialback resulting error element. // See https://xmpp.org/extensions/xep-0220.html#errors for more details. Error stravaganza.Element }
DialbackResult represents S2S dialback result.
type S2SDialback ¶
type S2SDialback interface { // ID returns S2S outgoing stream identifier. ID() S2SOutID // Disconnect performs disconnection over the stream. Disconnect(streamErr *streamerror.Error) <-chan error // DialbackResult returns a channel that's signaled when S2S dialback result. DialbackResult() <-chan DialbackResult }
S2SDialback represents a server-to-server dialback XMPP stream.
type S2SIn ¶
type S2SIn interface { // ID returns S2S incoming stream identifier. ID() S2SInID // Disconnect performs disconnection over the stream. Disconnect(streamErr *streamerror.Error) <-chan error // Done returns a channel that's closed when stream transport and all associated resources have been released. Done() <-chan struct{} }
S2SIn represents an incoming server-to-server XMPP stream.
type S2SOut ¶
type S2SOut interface { // ID returns S2S outgoing stream identifier. ID() S2SOutID // SendElement writes element string representation to the underlying stream transport. SendElement(elem stravaganza.Element) <-chan error // Disconnect performs disconnection over the stream. Disconnect(streamErr *streamerror.Error) <-chan error }
S2SOut represents an outgoing server-to-server XMPP stream.
Click to show internal directories.
Click to hide internal directories.