Documentation
¶
Overview ¶
Package xep0352 implements XEP-0352: Client State Indication.
Index ¶
- Constants
- type CSI
- func (c *CSI) AccountFeatures(_ context.Context) ([]string, error)
- func (c *CSI) Name() string
- func (c *CSI) ServerFeatures(_ context.Context) ([]string, error)
- func (c *CSI) Start(_ context.Context) error
- func (c *CSI) Stop(_ context.Context) error
- func (c *CSI) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
- type Config
Constants ¶
View Source
const ( // ModuleName represents CSI module name. ModuleName = "csi" // XEPNumber represents CSI XEP number. XEPNumber = "0352" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSI ¶
type CSI struct {
// contains filtered or unexported fields
}
CSI represents a Client State Indication (XEP-0352) module type.
func New ¶
func New( cfg Config, router router.Router, hosts *host.Hosts, hk *hook.Hooks, logger kitlog.Logger, ) *CSI
New returns a new initialized CSI instance.
func (*CSI) AccountFeatures ¶
AccountFeatures returns CSI account disco features.
func (*CSI) ServerFeatures ¶
ServerFeatures returns CSI server disco features.
func (*CSI) StreamFeature ¶
StreamFeature returns CSI module stream feature.
Click to show internal directories.
Click to hide internal directories.