Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶ added in v0.3.9
type Chat interface { Events() chan interface{} CheckForSupport(service string) bool QueryRooms(entity string) ([]data.DiscoveryItem, error) QueryRoomInformation(room string) (*data.RoomInfo, error) EnterRoom(*data.Occupant) error LeaveRoom(*data.Occupant) error SendChatMessage(msg string, to *data.Room) error RoomConfigForm(*data.Room, data.FormCallback) error //TODO: Remove me RequestRoomConfigForm(*data.Room) (*data.Form, error) UpdateRoomConfig(*data.Room, *data.Form) error }
type Conn ¶
type Conn interface { Authenticate(string, string) error AuthenticationFailure() error BindResource() error Cancel(data.Cookie) bool Cache() cache.WithExpiry Close() error Config() *data.Config CustomStorage() map[xml.Name]reflect.Type DiscoveryFeatures(string) ([]string, bool) DiscoveryFeaturesAndIdentities(string) ([]data.DiscoveryIdentity, []string, bool) Features() data.StreamFeatures GetRosterDelimiter() (string, error) In() *xml.Decoder Lock() *sync.Mutex Next() (data.Stanza, error) OriginDomain() string Out() io.Writer Rand() io.Reader 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 GetChatContext() Chat }
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
Click to show internal directories.
Click to hide internal directories.