xep0085

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 xep0085 implements XEP-0085: Chat State Notifications.

Index

Constants

View Source
const (
	// ModuleName represents Chat State Notifications module name.
	ModuleName = "chatstates"

	// XEPNumber represents Chat State Notifications XEP number.
	XEPNumber = "0085"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CSI

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

CSI represents a Chat State Notifications (XEP-0085) module type.

func New

func New(logger kitlog.Logger) *CSI

New returns a new initialized CSI instance.

func (*CSI) AccountFeatures

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

AccountFeatures returns Chat State Notifications account disco features.

func (*CSI) Name

func (m *CSI) Name() string

Name returns Chat State Notifications module name.

func (*CSI) ServerFeatures

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

ServerFeatures returns Chat State Notifications server disco features.

func (*CSI) Start

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

Start starts Chat State Notifications module.

func (*CSI) Stop

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

Stop stops Chat State Notifications module.

func (*CSI) StreamFeature

func (m *CSI) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)

StreamFeature returns Chat State Notifications stream feature.

Jump to

Keyboard shortcuts

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