Documentation ¶
Index ¶
- Constants
- type Options
- type Version
- func (v *Version) AccountFeatures(_ context.Context) ([]string, error)
- func (v *Version) MatchesNamespace(namespace string, serverTarget bool) bool
- func (v *Version) Name() string
- func (v *Version) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error
- func (v *Version) ServerFeatures(_ context.Context) ([]string, error)
- func (v *Version) Start(ctx context.Context) error
- func (v *Version) Stop(_ context.Context) error
- func (v *Version) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
Constants ¶
View Source
const ( // ModuleName represents version module name. ModuleName = "version" // XEPNumber represents version XEP number. XEPNumber = "0092" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v0.52.2
type Options struct { // ShowOS tells whether OS info should be revealed or not. ShowOS bool }
Options contains version module configuration options.
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version represents a version (XEP-0092) module type.
func (*Version) AccountFeatures ¶ added in v0.52.2
AccountFeatures returns version account disco features.
func (*Version) MatchesNamespace ¶ added in v0.52.2
MatchesNamespace tells whether namespace matches version module.
func (*Version) ServerFeatures ¶ added in v0.52.2
ServerFeatures returns version server disco features.
Click to show internal directories.
Click to hide internal directories.