roster

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName represents roster module name.
	ModuleName = "roster"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Roster

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

Roster represents a roster module type.

func New

func New(
	router router.Router,
	hosts *host.Hosts,
	resMng *c2s.ResourceManager,
	rep repository.Repository,
	hk *hook.Hooks,
	logger kitlog.Logger,
) *Roster

New returns a new initialized Roster instance.

func (*Roster) AccountFeatures

func (r *Roster) AccountFeatures(_ context.Context) ([]string, error)

AccountFeatures returns roster account disco features.

func (*Roster) MatchesNamespace

func (r *Roster) MatchesNamespace(namespace string, serverTarget bool) bool

MatchesNamespace tells whether namespace matches roster module.

func (*Roster) Name

func (r *Roster) Name() string

Name returns roster module name.

func (*Roster) ProcessIQ

func (r *Roster) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error

ProcessIQ process a roster iq.

func (*Roster) ServerFeatures

func (r *Roster) ServerFeatures(_ context.Context) ([]string, error)

ServerFeatures returns roster server disco features.

func (*Roster) Start

func (r *Roster) Start(_ context.Context) error

Start starts roster module.

func (*Roster) Stop

func (r *Roster) Stop(_ context.Context) error

Stop stops roster module.

func (*Roster) StreamFeature

func (r *Roster) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)

StreamFeature returns roster stream feature.

Jump to

Keyboard shortcuts

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