Documentation
¶
Overview ¶
Package xep0328 provides XMPP functionality.
Package xep0328 implements JID Prep (XEP-0328).
Index ¶
- Constants
- type JIDPrep
- func (j *JIDPrep) AccountFeatures(_ context.Context) ([]string, error)
- func (j *JIDPrep) MatchesNamespace(namespace string, serverTarget bool) bool
- func (j *JIDPrep) Name() string
- func (j *JIDPrep) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error
- func (j *JIDPrep) ServerFeatures(_ context.Context) ([]string, error)
- func (j *JIDPrep) Start(_ context.Context) error
- func (j *JIDPrep) Stop(_ context.Context) error
- func (j *JIDPrep) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
Constants ¶
View Source
const ( // ModuleName represents JID Prep module name. ModuleName = "jid_prep" // XEPNumber represents JID Prep XEP number. XEPNumber = "0328" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JIDPrep ¶
type JIDPrep struct {
// contains filtered or unexported fields
}
JIDPrep represents a JID Prep (XEP-0328) module.
func (*JIDPrep) AccountFeatures ¶
AccountFeatures returns JID Prep account disco features.
func (*JIDPrep) MatchesNamespace ¶ added in v0.5.0
MatchesNamespace tells whether namespace matches JID Prep module.
func (*JIDPrep) ProcessIQ ¶ added in v0.5.0
ProcessIQ answers a JID Prep request. An input that cannot be prepared is a successful query with an <invalid-jid/> answer, not an IQ error.
func (*JIDPrep) ServerFeatures ¶
ServerFeatures returns JID Prep server disco features.
func (*JIDPrep) StreamFeature ¶
StreamFeature returns JID Prep module stream feature.
Click to show internal directories.
Click to hide internal directories.