xep0054

package
v0.62.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 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,
	hk *hook.Hooks,
	logger kitlog.Logger,
) *VCard

New returns a new initialized VCard instance.

func (*VCard) AccountFeatures

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

AccountFeatures returns vCard account disco features.

func (*VCard) MatchesNamespace

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

MatchesNamespace tells whether namespace matches vCard module.

func (*VCard) Name

func (m *VCard) Name() string

Name returns vCard module name.

func (*VCard) ProcessIQ

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

ProcessIQ process a vCard iq.

func (*VCard) ServerFeatures

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

ServerFeatures returns vCard server disco features.

func (*VCard) Start

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

Start starts vCard module.

func (*VCard) Stop

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

Stop stops vCard module.

func (*VCard) StreamFeature

func (m *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