xep0077

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 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 Config

type Config struct {
	AllowRegistration bool `yaml:"allow_registration"`
	AllowChange       bool `yaml:"allow_change"`
	AllowCancel       bool `yaml:"allow_cancel"`
}

Config represents XMPP In-Band Registration module (XEP-0077) configuration.

type Register

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

Register represents an in-band server stream module.

func New

func New(config *Config, disco *xep0030.DiscoInfo, router *router.Router, userRep repository.User) *Register

New returns an in-band registration IQ handler.

func (*Register) MatchesIQ

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

MatchesIQ returns whether or not an IQ should be processed by the in-band registration module.

func (*Register) ProcessIQ

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

ProcessIQ processes an in-band registration IQ taking according actions over the associated stream.

func (*Register) ProcessIQWithStream added in v0.4.9

func (x *Register) ProcessIQWithStream(ctx context.Context, iq *xmpp.IQ, stm stream.C2S)

ProcessIQWithStream processes an in-band registration IQ taking according actions over a referenced stream.

func (*Register) Shutdown added in v0.4.0

func (x *Register) Shutdown() error

Shutdown shuts down in-band registration module.

Jump to

Keyboard shortcuts

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