roster

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 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,
	rep repository.Repository,
	resMng *c2s.ResourceManager,
	hosts *host.Hosts,
	sonar *sonar.Sonar,
) *Roster

New returns a new initialized Roster instance.

func (*Roster) AccountFeatures added in v0.52.2

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

AccountFeatures returns roster account disco features.

func (*Roster) MatchesNamespace added in v0.52.2

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

MatchesNamespace tells whether namespace matches roster module.

func (*Roster) Name added in v0.52.2

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 added in v0.52.2

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

ServerFeatures returns roster server disco features.

func (*Roster) Start added in v0.52.2

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

Start starts roster module.

func (*Roster) Stop added in v0.52.2

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

Stop stops roster module.

func (*Roster) StreamFeature added in v0.52.2

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