Documentation ¶
Index ¶
- type Config
- type Error
- type Session
- func (s *Session) Close(ctx context.Context) error
- func (s *Session) Open(ctx context.Context, featuresElem xmpp.XElement) error
- func (s *Session) Receive() (xmpp.XElement, *Error)
- func (s *Session) Send(ctx context.Context, elem xmpp.XElement) error
- func (s *Session) SetJID(sessionJID *jid.JID)
- func (s *Session) SetRemoteDomain(remoteDomain string)
- func (s *Session) StreamID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // JID defines an initial session JID. JID *jid.JID // MaxStanzaSize defines the maximum stanza size that can be read from the session transport. MaxStanzaSize int // RemoteDomain represents the remote receiving entity domain name. RemoteDomain string // IsServer defines whether or not this session is established by the server. IsServer bool // IsInitiating defines whether or not this is an initiating entity session. IsInitiating bool }
Config represents an XMPP session configuration.
type Error ¶
type Error struct { // Element returns the original incoming element that generated the session error. Element xmpp.XElement // UnderlyingErr is the underlying session error. UnderlyingErr error }
Error represents a session error.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents an XMPP session between two peers.
func (*Session) SetRemoteDomain ¶
SetRemoteDomain sets current session's remote domain.
Click to show internal directories.
Click to hide internal directories.