xep0328

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package xep0328 provides XMPP functionality.

Package xep0328 implements JID Prep (XEP-0328).

Index

Constants

View Source
const (
	// ModuleName represents JID Prep module name.
	ModuleName = "jid_prep"

	// XEPNumber represents JID Prep XEP number.
	XEPNumber = "0328"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JIDPrep

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

JIDPrep represents a JID Prep (XEP-0328) module.

func New

func New(router router.Router, logger kitlog.Logger) *JIDPrep

New returns a new initialized JIDPrep instance.

func (*JIDPrep) AccountFeatures

func (j *JIDPrep) AccountFeatures(_ context.Context) ([]string, error)

AccountFeatures returns JID Prep account disco features.

func (*JIDPrep) MatchesNamespace added in v0.5.0

func (j *JIDPrep) MatchesNamespace(namespace string, serverTarget bool) bool

MatchesNamespace tells whether namespace matches JID Prep module.

func (*JIDPrep) Name

func (j *JIDPrep) Name() string

Name returns JID Prep module name.

func (*JIDPrep) ProcessIQ added in v0.5.0

func (j *JIDPrep) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error

ProcessIQ answers a JID Prep request. An input that cannot be prepared is a successful query with an <invalid-jid/> answer, not an IQ error.

func (*JIDPrep) ServerFeatures

func (j *JIDPrep) ServerFeatures(_ context.Context) ([]string, error)

ServerFeatures returns JID Prep server disco features.

func (*JIDPrep) Start

func (j *JIDPrep) Start(_ context.Context) error

Start starts JID Prep module.

func (*JIDPrep) Stop

func (j *JIDPrep) Stop(_ context.Context) error

Stop stops JID Prep module.

func (*JIDPrep) StreamFeature

func (j *JIDPrep) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)

StreamFeature returns JID Prep module stream feature.

Jump to

Keyboard shortcuts

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