Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { Authenticate(string, string) error BindResource() error Cancel(data.Cookie) bool Close() error Config() *data.Config CustomStorage() map[xml.Name]reflect.Type Features() data.StreamFeatures GetRosterDelimiter() (string, error) In() *xml.Decoder Lock() *sync.Mutex Next() (data.Stanza, error) OriginDomain() string Out() io.Writer RawOut() io.WriteCloser ReadStanzas(chan<- data.Stanza) error RegisterAccount(string, string) (bool, error) RequestRoster() (<-chan data.Stanza, data.Cookie, error) RequestVCard() (<-chan data.Stanza, data.Cookie, error) Send(string, string) error SendIQ(string, string, interface{}) (chan data.Stanza, data.Cookie, error) SendIQReply(string, string, string, interface{}) error SendInitialStreamHeader() error SendPing() (reply chan data.Stanza, cookie data.Cookie, err error) SendPresence(string, string, string, string) error ServerAddress() string SetInOut(*xml.Decoder, io.Writer) SetKeepaliveOut(io.Writer) SetRawOut(io.WriteCloser) SetServerAddress(string) SignalPresence(string) error }
Conn represents a connection to an XMPP server.
type Dialer ¶
type Dialer interface { Config() data.Config Dial() (Conn, error) GetServer() string RegisterAccount(data.FormCallback) (Conn, error) ServerAddress() string SetConfig(data.Config) SetJID(string) SetPassword(string) SetProxy(proxy.Dialer) SetServerAddress(v string) }
Dialer connects and authenticates to an XMPP server
type DialerFactory ¶
DialerFactory represents a function that can create a Dialer
Click to show internal directories.
Click to hide internal directories.