Documentation
¶
Overview ¶
Package xep0440 implements XEP-0440: SASL Channel-Binding Type Capability.
Index ¶
- Constants
- type ChannelBinding
- func (c *ChannelBinding) AccountFeatures(_ context.Context) ([]string, error)
- func (c *ChannelBinding) Name() string
- func (c *ChannelBinding) ServerFeatures(_ context.Context) ([]string, error)
- func (c *ChannelBinding) Start(_ context.Context) error
- func (c *ChannelBinding) Stop(_ context.Context) error
- func (c *ChannelBinding) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
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.
Click to show internal directories.
Click to hide internal directories.