Documentation ¶
Index ¶
- type Presence
- func (p *Presence) Allow(jid xmpp.JID)
- func (p *Presence) Deny(jid xmpp.JID)
- func (p *Presence) HandlePresence(pres *xmpp.Presence)
- func (p *Presence) HandleStanza(s xmpp.Stanza)
- func (p *Presence) Offline(error)
- func (p *Presence) Online(s xmpp.Session)
- func (p *Presence) SetPriority(priority int)
- func (p *Presence) SetShow(show string)
- func (p *Presence) SetStatus(status string)
- func (p *Presence) Subscribe(jid xmpp.JID)
- func (p *Presence) Unsubscribe(jid xmpp.JID)
- type Request
- type RequestHandler
- type Update
- type UpdateHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Presence ¶
type Presence struct { RequestHandler UpdateHandler // contains filtered or unexported fields }
Presence holds the state of the presence service
func (*Presence) HandlePresence ¶
func (p *Presence) HandlePresence(pres *xmpp.Presence)
func (*Presence) HandleStanza ¶
func (p *Presence) HandleStanza(s xmpp.Stanza)
func (*Presence) SetPriority ¶
SetPriority sets resource priority
func (*Presence) Subscribe ¶
func (p *Presence) Subscribe(jid xmpp.JID)
Subscribe to a user's presence
func (*Presence) Unsubscribe ¶
func (p *Presence) Unsubscribe(jid xmpp.JID)
Unsubscribe from a user's presence
type RequestHandler ¶
type RequestHandler func(*Request)
type UpdateHandler ¶
type UpdateHandler func(*Update)
Click to show internal directories.
Click to hide internal directories.