roster

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Versioning bool `yaml:"versioning"`
}

Config represents a roster configuration.

type Roster

type Roster struct {
	// contains filtered or unexported fields
}

Roster represents a roster server stream module.

func New

func New(cfg *Config, shutdownCh <-chan struct{}) *Roster

New returns a roster server stream module.

func (*Roster) MatchesIQ

func (r *Roster) MatchesIQ(iq *xmpp.IQ) bool

MatchesIQ returns whether or not an IQ should be processed by the roster module.

func (*Roster) OnlinePresencesMatchingJID added in v0.3.2

func (r *Roster) OnlinePresencesMatchingJID(j *jid.JID) []*xmpp.Presence

OnlinePresencesMatchingJID returns current online presences matching a given JID.

func (*Roster) ProcessIQ

func (r *Roster) ProcessIQ(iq *xmpp.IQ, stm stream.C2S)

ProcessIQ processes a roster IQ taking according actions over the associated stream.

func (*Roster) ProcessPresence

func (r *Roster) ProcessPresence(presence *xmpp.Presence)

ProcessPresence process an incoming roster presence.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL