ultrasound

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: 11 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 {
	PageSize int `yaml:"page_size"`
}

Config represents customized ultrasound module configuration.

type Ultrasound

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

Ultrasound represents a ultrasound module.

func New

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

New returns a ultrasound IQ handler module.

func (*Ultrasound) MatchesIQ

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

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

func (*Ultrasound) ProcessIQ

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

ProcessIQ process a ultrasound IQ talking according action over the associated stream.

func (*Ultrasound) Shutdown

func (x *Ultrasound) Shutdown() error

Shutdown shuts down ultrasound module.

Jump to

Keyboard shortcuts

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