Documentation ¶
Index ¶
- Constants
- type Bind
- type Client
- func (c *Client) Disconnect()
- func (c *Client) JoinMUC(jid, nick string)
- func (c *Client) Kick(lobby, nick, reason string) error
- func (c *Client) Recv() (interface{}, error)
- func (c *Client) SendComposing(jid, typeof string)
- func (c *Client) SendMessage(jid, typeof, body string)
- func (c *Client) SendPaused(jid, typeof string)
- type Error
- type Event
- type IQ
- type Message
- type Opts
- type Presence
- type Stanza
Constants ¶
View Source
const ( OpenStanza = "<open xmlns='urn:ietf:params:xml:ns:xmpp-framing' to='{{.Host}}' version='1.0'/>" AuthStanza = "<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='ANONYMOUS'/>" BindStanza = "<iq type='set' id='_bind_auth_2' xmlns='jabber:client'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/></iq>" SessStanza = "<iq type='set' id='_session_auth_2' xmlns='jabber:client'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>" JoinMucStanza = "<presence from='{{.JID}}' to='{{.MUCJID}}' xmlns='jabber:client'><x xmlns='http://jabber.org/protocol/muc'/></presence>" JoinMucStanza2 = "<presence from='{{.JID}}' to='{{.MUCJID}}' xmlns='jabber:client'><show/><status/></presence>" SendMessageStanza = "" /* 177-byte string literal not displayed */ SendComposingStanza = "" /* 204-byte string literal not displayed */ SendPausedStanza = "" /* 198-byte string literal not displayed */ KickUserStanza = `` /* 194-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Disconnect ¶
func (c *Client) Disconnect()
func (*Client) SendComposing ¶
func (*Client) SendMessage ¶
func (*Client) SendPaused ¶
type Opts ¶
Click to show internal directories.
Click to hide internal directories.