xep0440

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

Documentation

Overview

Package xep0440 implements XEP-0440: SASL Channel-Binding Type Capability.

Index

Constants

View Source
const (
	// ModuleName represents Channel Binding module name.
	ModuleName = "channel_binding"

	// XEPNumber represents Channel Binding XEP number.
	XEPNumber = "0440"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelBinding

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

ChannelBinding represents a Channel Binding (XEP-0440) feature advertisement module.

func New

func New(logger kitlog.Logger) *ChannelBinding

New returns a new initialized ChannelBinding instance.

func (*ChannelBinding) AccountFeatures

func (c *ChannelBinding) AccountFeatures(_ context.Context) ([]string, error)

AccountFeatures returns Channel Binding account disco features.

func (*ChannelBinding) Name

func (c *ChannelBinding) Name() string

Name returns Channel Binding module name.

func (*ChannelBinding) ServerFeatures

func (c *ChannelBinding) ServerFeatures(_ context.Context) ([]string, error)

ServerFeatures returns Channel Binding server disco features.

func (*ChannelBinding) Start

func (c *ChannelBinding) Start(_ context.Context) error

Start starts Channel Binding module.

func (*ChannelBinding) Stop

func (c *ChannelBinding) Stop(_ context.Context) error

Stop stops Channel Binding module.

func (*ChannelBinding) StreamFeature

func (c *ChannelBinding) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)

StreamFeature returns Channel Binding module stream feature.

Jump to

Keyboard shortcuts

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