Documentation
¶
Index ¶
- Constants
- type Config
- type Roster
- func (r *Roster) AssociatedNamespaces() []string
- func (r *Roster) BroadcastPresence(presence *xml.Presence)
- func (r *Roster) BroadcastPresenceAndWait(presence *xml.Presence)
- func (r *Roster) DeliverPendingApprovalNotifications()
- func (r *Roster) Done()
- func (r *Roster) MatchesIQ(iq *xml.IQ) bool
- func (r *Roster) ProcessIQ(iq *xml.IQ)
- func (r *Roster) ProcessPresence(presence *xml.Presence)
- func (r *Roster) ReceivePresences()
Constants ¶
const ( SubscriptionNone = "none" SubscriptionFrom = "from" SubscriptionTo = "to" SubscriptionBoth = "both" SubscriptionRemove = "remove" )
roster subscription values
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Versioning bool `yaml:"versioning"`
}
Config represents roster module configuration.
type Roster ¶
type Roster struct {
// contains filtered or unexported fields
}
Roster represents a roster server stream module.
func (*Roster) AssociatedNamespaces ¶
AssociatedNamespaces returns namespaces associated with roster module.
func (*Roster) BroadcastPresence ¶
BroadcastPresence broadcasts presence to all outbound roster contacts.
func (*Roster) BroadcastPresenceAndWait ¶
BroadcastPresenceAndWait broadcasts presence to all outbound roster contacts in a synchronous manner.
func (*Roster) DeliverPendingApprovalNotifications ¶
func (r *Roster) DeliverPendingApprovalNotifications()
DeliverPendingApprovalNotifications delivers any pending roster notification to the associated stream.
func (*Roster) MatchesIQ ¶
MatchesIQ returns whether or not an IQ should be processed by the roster module.
func (*Roster) ProcessIQ ¶
ProcessIQ processes a roster IQ taking according actions over the associated stream.
func (*Roster) ProcessPresence ¶
ProcessPresence process an incoming roster presence.
func (*Roster) ReceivePresences ¶
func (r *Roster) ReceivePresences()
ReceivePresences delivers all inbound roster available presences to the associated module stream.