xep0163

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pep

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

Pep represents a Personal Eventing Protocol module.

func New

func New(disco *xep0030.DiscoInfo, presenceHub *xep0115.EntityCaps, router router.Router, rosterRep repository.Roster, pubSubRep repository.PubSub) *Pep

New returns a PEP command IQ handler module.

func (*Pep) DeliverLastItems

func (x *Pep) DeliverLastItems(ctx context.Context, jid *jid.JID)

DeliverLastItems delivers last items from all those nodes to which the jid is subscribed

func (*Pep) MatchesIQ

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

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

func (*Pep) ProcessIQ

func (x *Pep) ProcessIQ(ctx context.Context, iq *xmpp.IQ)

ProcessIQ processes a version IQ taking according actions over the associated stream

func (*Pep) Shutdown

func (x *Pep) Shutdown() error

Shutdown shuts down version module.

func (*Pep) SubscribeToAll

func (x *Pep) SubscribeToAll(ctx context.Context, host string, jid *jid.JID)

SubscribeToAll subscribes a jid to all host nodes

func (*Pep) UnsubscribeFromAll

func (x *Pep) UnsubscribeFromAll(ctx context.Context, host string, jid *jid.JID)

UnsubscribeFromAll unsubscribes a jid from all host nodes

Jump to

Keyboard shortcuts

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