xep0092

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: 9 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 {
	ShowOS bool `yaml:"show_os"`
}

Config represents XMPP Software Version module (XEP-0092) configuration.

type Version

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

Version represents a version module.

func New

func New(config *Config, disco *xep0030.DiscoInfo, router router.Router) *Version

New returns a version IQ handler module.

func (*Version) MatchesIQ

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

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

func (*Version) ProcessIQ

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

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

func (*Version) Shutdown

func (x *Version) Shutdown() error

Shutdown shuts down version module.

Jump to

Keyboard shortcuts

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