xep0191

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockingCommand

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

BlockingCommand represents a blocking command IQ handler module.

func New

func New(disco *xep0030.DiscoInfo, entityCaps *xep0115.EntityCaps, router router.Router, rosterRep repository.Roster, blockListRep repository.BlockList) *BlockingCommand

New returns a blocking command IQ handler module.

func (*BlockingCommand) MatchesIQ

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

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

func (*BlockingCommand) ProcessIQ

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

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

func (*BlockingCommand) Shutdown

func (x *BlockingCommand) Shutdown() error

Shutdown shuts down blocking module.

Jump to

Keyboard shortcuts

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