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 + type BlockList interface + DeleteBlockListItem func(ctx context.Context, item *blocklistmodel.Item) error + DeleteBlockListItems func(ctx context.Context, username string) error + FetchBlockListItems func(ctx context.Context, username string) ([]blocklistmodel.Item, error) + UpsertBlockListItem func(ctx context.Context, item *blocklistmodel.Item) error + type Capabilities interface + CapabilitiesExist func(ctx context.Context, node, ver string) (bool, error) + FetchCapabilities func(ctx context.Context, node, ver string) (*capsmodel.Capabilities, error) + UpsertCapabilities func(ctx context.Context, caps *capsmodel.Capabilities) error + type Last interface + DeleteLast func(ctx context.Context, username string) error + FetchLast func(ctx context.Context, username string) (*lastmodel.Last, error) + UpsertLast func(ctx context.Context, last *lastmodel.Last) error + type Offline interface + CountOfflineMessages func(ctx context.Context, username string) (int, error) + DeleteOfflineMessages func(ctx context.Context, username string) error + FetchOfflineMessages func(ctx context.Context, username string) ([]*stravaganza.Message, error) + InsertOfflineMessage func(ctx context.Context, message *stravaganza.Message, username string) error + type Private interface + DeletePrivates func(ctx context.Context, username string) error + FetchPrivate func(ctx context.Context, namespace, username string) (stravaganza.Element, error) + UpsertPrivate func(ctx context.Context, private stravaganza.Element, namespace, username string) error + type Repository interface + InTransaction func(ctx context.Context, f func(ctx context.Context, tx Transaction) error) error + Start func(ctx context.Context) error + Stop func(ctx context.Context) error + type Roster interface + DeleteRosterItem func(ctx context.Context, username, jid string) error + DeleteRosterItems func(ctx context.Context, username string) error + DeleteRosterNotification func(ctx context.Context, contact, jid string) error + DeleteRosterNotifications func(ctx context.Context, contact string) error + FetchRosterGroups func(ctx context.Context, username string) ([]string, error) + FetchRosterItem func(ctx context.Context, username, jid string) (*rostermodel.Item, error) + FetchRosterItems func(ctx context.Context, username string) ([]rostermodel.Item, error) + FetchRosterItemsInGroups func(ctx context.Context, username string, groups []string) ([]rostermodel.Item, error) + FetchRosterNotification func(ctx context.Context, contact string, jid string) (*rostermodel.Notification, error) + FetchRosterNotifications func(ctx context.Context, contact string) ([]rostermodel.Notification, error) + FetchRosterVersion func(ctx context.Context, username string) (int, error) + TouchRosterVersion func(ctx context.Context, username string) (int, error) + UpsertRosterItem func(ctx context.Context, ri *rostermodel.Item) error + UpsertRosterNotification func(ctx context.Context, rn *rostermodel.Notification) error + type Transaction interface + type User interface + DeleteUser func(ctx context.Context, username string) error + FetchUser func(ctx context.Context, username string) (*usermodel.User, error) + UpsertUser func(ctx context.Context, user *usermodel.User) error + UserExists func(ctx context.Context, username string) (bool, error) + type VCard interface + DeleteVCard func(ctx context.Context, username string) error + FetchVCard func(ctx context.Context, username string) (stravaganza.Element, error) + UpsertVCard func(ctx context.Context, vCard stravaganza.Element, username string) error