Documentation ¶
Index ¶
- Constants
- type Last
- func (m *Last) AccountFeatures(_ context.Context) ([]string, error)
- func (m *Last) MatchesNamespace(namespace string, _ bool) bool
- func (m *Last) Name() string
- func (m *Last) ProcessIQ(ctx context.Context, iq *stravaganza.IQ) error
- func (m *Last) ServerFeatures(_ context.Context) ([]string, error)
- func (m *Last) Start(_ context.Context) error
- func (m *Last) Stop(_ context.Context) error
- func (m *Last) StreamFeature(_ context.Context, _ string) (stravaganza.Element, error)
Constants ¶
View Source
const ( // ModuleName represents last activity module name. ModuleName = "last" // XEPNumber represents last activity XEP number. XEPNumber = "0012" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Last ¶
type Last struct {
// contains filtered or unexported fields
}
Last represents a last activity (XEP-0012) module type.
func New ¶
func New( router router.Router, hosts *host.Hosts, resMng resourcemanager.Manager, rep repository.Repository, hk *hook.Hooks, logger kitlog.Logger, ) *Last
New returns a new initialized Last instance.
func (*Last) AccountFeatures ¶
AccountFeatures returns account last activity features.
func (*Last) MatchesNamespace ¶
MatchesNamespace tells whether namespace matches last activity module.
func (*Last) ServerFeatures ¶
ServerFeatures returns server last activity features.
func (*Last) StreamFeature ¶
StreamFeature returns last activity stream feature.
Click to show internal directories.
Click to hide internal directories.