Documentation ¶
Index ¶
- Constants
- type VCard
- func (v *VCard) AccountFeatures(_ context.Context) ([]string, error)
- func (v *VCard) MatchesNamespace(namespace string, _ bool) bool
- func (v *VCard) Name() string
- func (v *VCard) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error
- func (v *VCard) ServerFeatures(_ context.Context) ([]string, error)
- func (v *VCard) Start(_ context.Context) error
- func (v *VCard) Stop(_ context.Context) error
- func (v *VCard) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
Constants ¶
View Source
const ( // ModuleName represents vCard module name. ModuleName = "vcard" // XEPNumber represents vCard XEP number. XEPNumber = "0054" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VCard ¶
type VCard struct {
// contains filtered or unexported fields
}
VCard represents a vCard (XEP-0054) module type.
func New ¶
func New(router router.Router, rep repository.Repository, sn *sonar.Sonar) *VCard
New returns a new initialized VCard instance.
func (*VCard) AccountFeatures ¶ added in v0.52.2
AccountFeatures returns vCard account disco features.
func (*VCard) MatchesNamespace ¶ added in v0.52.2
MatchesNamespace tells whether namespace matches vCard module.
func (*VCard) ServerFeatures ¶ added in v0.52.2
ServerFeatures returns vCard server disco features.
Click to show internal directories.
Click to hide internal directories.