Documentation ¶
Index ¶
- Constants
- type Capabilities
- func (m *Capabilities) AccountFeatures(_ context.Context) ([]string, error)
- func (m *Capabilities) Name() string
- func (m *Capabilities) ServerFeatures(_ context.Context) ([]string, error)
- func (m *Capabilities) Start(_ context.Context) error
- func (m *Capabilities) Stop(_ context.Context) error
- func (m *Capabilities) StreamFeature(ctx context.Context, domain string) (stravaganza.Element, error)
Constants ¶
View Source
const ( // ModuleName represents entity capabilities module name. ModuleName = "caps" // XEPNumber represents entity capabilities XEP number. XEPNumber = "0115" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶ added in v0.52.2
type Capabilities struct {
// contains filtered or unexported fields
}
Capabilities represents entity capabilities module type.
func New ¶
func New( disco *xep0030.Disco, router router.Router, rep repository.Capabilities, sn *sonar.Sonar, ) *Capabilities
New creates and initializes a new Capabilities instance.
func (*Capabilities) AccountFeatures ¶ added in v0.52.2
func (m *Capabilities) AccountFeatures(_ context.Context) ([]string, error)
AccountFeatures returns entity capabilities module account disco features.
func (*Capabilities) Name ¶ added in v0.52.2
func (m *Capabilities) Name() string
Name returns entity capabilities module name.
func (*Capabilities) ServerFeatures ¶ added in v0.52.2
func (m *Capabilities) ServerFeatures(_ context.Context) ([]string, error)
ServerFeatures returns entity capabilities module server disco features.
func (*Capabilities) Start ¶ added in v0.52.2
func (m *Capabilities) Start(_ context.Context) error
Start starts entity capabilities module.
func (*Capabilities) Stop ¶ added in v0.52.2
func (m *Capabilities) Stop(_ context.Context) error
Stop stops entity capabilities module.
func (*Capabilities) StreamFeature ¶ added in v0.52.2
func (m *Capabilities) StreamFeature(ctx context.Context, domain string) (stravaganza.Element, error)
StreamFeature returns entity capabilities module stream feature.
Click to show internal directories.
Click to hide internal directories.