Documentation
¶
Index ¶
- type Pep
- func (x *Pep) DeliverLastItems(ctx context.Context, jid *jid.JID)
- func (x *Pep) MatchesIQ(iq *xmpp.IQ) bool
- func (x *Pep) ProcessIQ(ctx context.Context, iq *xmpp.IQ)
- func (x *Pep) Shutdown() error
- func (x *Pep) SubscribeToAll(ctx context.Context, host string, jid *jid.JID)
- func (x *Pep) UnsubscribeFromAll(ctx context.Context, host string, jid *jid.JID)
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 ¶
DeliverLastItems delivers last items from all those nodes to which the jid is subscribed
func (*Pep) MatchesIQ ¶
MatchesIQ returns whether or not an IQ should be processed by the PEP module.
func (*Pep) ProcessIQ ¶
ProcessIQ processes a version IQ taking according actions over the associated stream
func (*Pep) SubscribeToAll ¶
SubscribeToAll subscribes a jid to all host nodes
Click to show internal directories.
Click to hide internal directories.