Versions in this module Expand all Collapse all v0 v0.20.5 Dec 19, 2022 v0.20.4 Dec 19, 2022 Changes in this version + type Adapter interface + AuthAddRecord func(user t.Uid, scheme, unique string, authLvl auth.Level, secret []byte, ...) error + AuthDelAllRecords func(uid t.Uid) (int, error) + AuthDelScheme func(user t.Uid, scheme string) error + AuthGetRecord func(user t.Uid, scheme string) (string, auth.Level, []byte, time.Time, error) + AuthGetUniqueRecord func(unique string) (t.Uid, auth.Level, []byte, time.Time, error) + AuthUpdRecord func(user t.Uid, scheme, unique string, authLvl auth.Level, secret []byte, ...) error + ChannelsForUser func(uid t.Uid) ([]string, error) + CheckDbVersion func() error + Close func() error + CreateDb func(reset bool) error + CredConfirm func(uid t.Uid, method string) error + CredDel func(uid t.Uid, method, value string) error + CredFail func(uid t.Uid, method string) error + CredGetActive func(uid t.Uid, method string) (*t.Credential, error) + CredGetAll func(uid t.Uid, method string, validatedOnly bool) ([]t.Credential, error) + CredUpsert func(cred *t.Credential) (bool, error) + DeviceDelete func(uid t.Uid, deviceID string) error + DeviceGetAll func(uid ...t.Uid) (map[t.Uid][]t.DeviceDef, int, error) + DeviceUpsert func(uid t.Uid, dev *t.DeviceDef) error + FileDeleteUnused func(olderThan time.Time, limit int) ([]string, error) + FileFinishUpload func(fd *t.FileDef, success bool, size int64) (*t.FileDef, error) + FileGet func(fid string) (*t.FileDef, error) + FileLinkAttachments func(topic string, userId, msgId t.Uid, fids []string) error + FileStartUpload func(fd *t.FileDef) error + FindTopics func(req [][]string, opt []string) ([]t.Subscription, error) + FindUsers func(user t.Uid, req [][]string, opt []string) ([]t.Subscription, error) + FriendAdd func(fir *t.Friendcontact) error + GetDbVersion func() (int, error) + GetName func() string + IsOpen func() bool + MessageDeleteList func(topic string, toDel *t.DelMessage) error + MessageGetAll func(topic string, forUser t.Uid, opts *t.QueryOpt) ([]t.Message, error) + MessageGetDeleted func(topic string, forUser t.Uid, opts *t.QueryOpt) ([]t.DelMessage, error) + MessageSave func(msg *t.Message) error + Open func(config json.RawMessage) error + OwnTopics func(uid t.Uid) ([]string, error) + SetMaxResults func(val int) error + Stats func() interface{} + SubsDelete func(topic string, user t.Uid) error + SubsForTopic func(topic string, keepDeleted bool, opts *t.QueryOpt) ([]t.Subscription, error) + SubsForUser func(user t.Uid) ([]t.Subscription, error) + SubsUpdate func(topic string, user t.Uid, update map[string]interface{}) error + SubscriptionGet func(topic string, user t.Uid, keepDeleted bool) (*t.Subscription, error) + TopicCreate func(topic *t.Topic) error + TopicCreateP2P func(initiator, invited *t.Subscription) error + TopicDelete func(topic string, isChan, hard bool) error + TopicGet func(topic string) (*t.Topic, error) + TopicOwnerChange func(topic string, newOwner t.Uid) error + TopicShare func(subs []*t.Subscription) error + TopicUpdate func(topic string, update map[string]interface{}) error + TopicUpdateOnMessage func(topic string, msg *t.Message) error + TopicsForUser func(uid t.Uid, keepDeleted bool, opts *t.QueryOpt) ([]t.Subscription, error) + UpgradeDb func() error + UserCreate func(user *t.User) error + UserDelete func(uid t.Uid, hard bool) error + UserGet func(uid t.Uid) (*t.User, error) + UserGetAll func(ids ...t.Uid) ([]t.User, error) + UserGetByCred func(method, value string) (t.Uid, error) + UserUnreadCount func(ids ...t.Uid) (map[t.Uid]int, error) + UserUpdate func(uid t.Uid, update map[string]interface{}) error + UserUpdateTags func(uid t.Uid, add, remove, reset []string) ([]string, error) + UsersForTopic func(topic string, keepDeleted bool, opts *t.QueryOpt) ([]t.Subscription, error) + Version func() int