Documentation ¶
Index ¶
- Constants
- type VCard
- func (m *VCard) AccountFeatures(_ context.Context) ([]string, error)
- func (m *VCard) MatchesNamespace(namespace string, _ bool) bool
- func (m *VCard) Name() string
- func (m *VCard) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error
- func (m *VCard) ServerFeatures(_ context.Context) ([]string, error)
- func (m *VCard) Start(_ context.Context) error
- func (m *VCard) Stop(_ context.Context) error
- func (m *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, hk *hook.Hooks, ) *VCard
New returns a new initialized VCard instance.
func (*VCard) AccountFeatures ¶
AccountFeatures returns vCard account disco features.
func (*VCard) MatchesNamespace ¶
MatchesNamespace tells whether namespace matches vCard module.
func (*VCard) ServerFeatures ¶
ServerFeatures returns vCard server disco features.
Click to show internal directories.
Click to hide internal directories.