xep0054

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

Documentation

Index

Constants

View Source
const (
	// ModuleName represents vCard module name.
	ModuleName = "vcard"

	// XEPNumber represents vCard XEP number.
	XEPNumber = "0054"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VCard

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

VCard represents a vCard (XEP-0054) module type.

func New

func New(router router.Router, rep repository.Repository, sn *sonar.Sonar) *VCard

New returns a new initialized VCard instance.

func (*VCard) AccountFeatures added in v0.52.2

func (v *VCard) AccountFeatures(_ context.Context) ([]string, error)

AccountFeatures returns vCard account disco features.

func (*VCard) MatchesNamespace added in v0.52.2

func (v *VCard) MatchesNamespace(namespace string, _ bool) bool

MatchesNamespace tells whether namespace matches vCard module.

func (*VCard) Name added in v0.52.2

func (v *VCard) Name() string

Name returns vCard module name.

func (*VCard) ProcessIQ

func (v *VCard) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error

ProcessIQ process a vCard iq.

func (*VCard) ServerFeatures added in v0.52.2

func (v *VCard) ServerFeatures(_ context.Context) ([]string, error)

ServerFeatures returns vCard server disco features.

func (*VCard) Start added in v0.52.2

func (v *VCard) Start(_ context.Context) error

Start starts vCard module.

func (*VCard) Stop added in v0.52.2

func (v *VCard) Stop(_ context.Context) error

Stop stops vCard module.

func (*VCard) StreamFeature added in v0.52.2

func (v *VCard) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)

StreamFeature returns vCard module stream feature.

Jump to

Keyboard shortcuts

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