xep0012

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastActivity

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

LastActivity represents a last activity stream module.

func New

func New(stm stream.C2S) *LastActivity

New returns a last activity IQ handler module.

func (*LastActivity) MatchesIQ

func (x *LastActivity) MatchesIQ(iq *xml.IQ) bool

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

func (*LastActivity) ProcessIQ

func (x *LastActivity) ProcessIQ(iq *xml.IQ)

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

func (*LastActivity) RegisterDisco added in v0.3.0

func (x *LastActivity) RegisterDisco(discoInfo *xep0030.DiscoInfo)

RegisterDisco registers disco entity features/items associated to last activity module.

Jump to

Keyboard shortcuts

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