Versions in this module Expand all Collapse all v0 v0.54.1 Jun 18, 2021 v0.54.0 Jun 7, 2021 Changes in this version + func New(rep repository.Repository) repository.Repository + type Measured struct + func (m *Measured) CapabilitiesExist(ctx context.Context, node, ver string) (ok bool, err error) + func (m *Measured) CountOfflineMessages(ctx context.Context, username string) (int, error) + func (m *Measured) DeleteBlockListItem(ctx context.Context, item *blocklistmodel.Item) (err error) + func (m *Measured) DeleteBlockListItems(ctx context.Context, username string) (err error) + func (m *Measured) DeleteLast(ctx context.Context, username string) error + func (m *Measured) DeleteOfflineMessages(ctx context.Context, username string) error + func (m *Measured) DeletePrivates(ctx context.Context, username string) (err error) + func (m *Measured) DeleteRosterItem(ctx context.Context, username, jid string) error + func (m *Measured) DeleteRosterItems(ctx context.Context, username string) error + func (m *Measured) DeleteRosterNotification(ctx context.Context, contact, jid string) error + func (m *Measured) DeleteRosterNotifications(ctx context.Context, contact string) error + func (m *Measured) DeleteUser(ctx context.Context, username string) (err error) + func (m *Measured) DeleteVCard(ctx context.Context, username string) (err error) + func (m *Measured) FetchBlockListItems(ctx context.Context, username string) (blockList []blocklistmodel.Item, err error) + func (m *Measured) FetchCapabilities(ctx context.Context, node, ver string) (caps *capsmodel.Capabilities, err error) + func (m *Measured) FetchLast(ctx context.Context, username string) (last *lastmodel.Last, err error) + func (m *Measured) FetchOfflineMessages(ctx context.Context, username string) ([]*stravaganza.Message, error) + func (m *Measured) FetchPrivate(ctx context.Context, namespace, username string) (private stravaganza.Element, err error) + func (m *Measured) FetchRosterGroups(ctx context.Context, username string) ([]string, error) + func (m *Measured) FetchRosterItem(ctx context.Context, username, jid string) (*rostermodel.Item, error) + func (m *Measured) FetchRosterItems(ctx context.Context, username string) ([]rostermodel.Item, error) + func (m *Measured) FetchRosterItemsInGroups(ctx context.Context, username string, groups []string) ([]rostermodel.Item, error) + func (m *Measured) FetchRosterNotification(ctx context.Context, contact string, jid string) (*rostermodel.Notification, error) + func (m *Measured) FetchRosterNotifications(ctx context.Context, contact string) ([]rostermodel.Notification, error) + func (m *Measured) FetchRosterVersion(ctx context.Context, username string) (int, error) + func (m *Measured) FetchUser(ctx context.Context, username string) (usr *usermodel.User, err error) + func (m *Measured) FetchVCard(ctx context.Context, username string) (stravaganza.Element, error) + func (m *Measured) InTransaction(ctx context.Context, ...) error + func (m *Measured) InsertOfflineMessage(ctx context.Context, message *stravaganza.Message, username string) error + func (m *Measured) Start(ctx context.Context) error + func (m *Measured) Stop(ctx context.Context) error + func (m *Measured) TouchRosterVersion(ctx context.Context, username string) (int, error) + func (m *Measured) UpsertBlockListItem(ctx context.Context, item *blocklistmodel.Item) (err error) + func (m *Measured) UpsertCapabilities(ctx context.Context, caps *capsmodel.Capabilities) (err error) + func (m *Measured) UpsertLast(ctx context.Context, last *lastmodel.Last) error + func (m *Measured) UpsertPrivate(ctx context.Context, private stravaganza.Element, namespace, username string) (err error) + func (m *Measured) UpsertRosterItem(ctx context.Context, ri *rostermodel.Item) error + func (m *Measured) UpsertRosterNotification(ctx context.Context, rn *rostermodel.Notification) error + func (m *Measured) UpsertUser(ctx context.Context, user *usermodel.User) (err error) + func (m *Measured) UpsertVCard(ctx context.Context, vCard stravaganza.Element, username string) error + func (m *Measured) UserExists(ctx context.Context, username string) (ok bool, err error)