roster

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: GPL-3.0 Imports: 14 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, presenceHub *presencehub.PresenceHub, pep *xep0163.Pep, router *router.Router) *Roster

New returns a roster server stream module.

func (*Roster) MatchesIQ

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

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

func (*Roster) ProcessIQ

func (x *Roster) ProcessIQ(iq *xmpp.IQ)

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

func (*Roster) ProcessPresence

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

ProcessPresence process an incoming roster presence.

func (*Roster) Shutdown added in v0.4.0

func (x *Roster) Shutdown() error

Shutdown shuts down roster module.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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