Documentation ¶
Index ¶
- Constants
- type Time
- func (m *Time) AccountFeatures(_ context.Context) ([]string, error)
- func (m *Time) MatchesNamespace(namespace string, serverTarget bool) bool
- func (m *Time) Name() string
- func (m *Time) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error
- func (m *Time) ServerFeatures(_ context.Context) ([]string, error)
- func (m *Time) Start(_ context.Context) error
- func (m *Time) Stop(_ context.Context) error
- func (m *Time) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
Constants ¶
View Source
const ( // ModuleName represents time module name. ModuleName = "time" // XEPNumber represents time XEP number. XEPNumber = "0202" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time represents a last activity (XEP-0202) module type.
func (*Time) AccountFeatures ¶
AccountFeatures returns time account disco features.
func (*Time) MatchesNamespace ¶
MatchesNamespace tells whether namespace matches time module.
func (*Time) ServerFeatures ¶
ServerFeatures returns time server disco features.
Click to show internal directories.
Click to hide internal directories.