roster

package
v0.0.0-...-aeec266 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: BSD-3-Clause Imports: 15 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, entityCaps *xep0115.EntityCaps, pep *xep0163.Pep, router router.Router, userRep repository.User, rosterRep repository.Roster) *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(ctx context.Context, iq *xmpp.IQ)

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

func (*Roster) ProcessPresence

func (x *Roster) ProcessPresence(ctx context.Context, presence *xmpp.Presence)

ProcessPresence process an incoming roster presence.

func (*Roster) Shutdown

func (x *Roster) Shutdown() error

Shutdown shuts down roster module.

Jump to

Keyboard shortcuts

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