Documentation ¶
Overview ¶
Package mock_store is a generated GoMock package.
Index ¶
- type MockDevicePersistenceInterface
- func (m *MockDevicePersistenceInterface) Delete(uid types.Uid, deviceID string) error
- func (m *MockDevicePersistenceInterface) EXPECT() *MockDevicePersistenceInterfaceMockRecorder
- func (m *MockDevicePersistenceInterface) GetAll(uid ...types.Uid) (map[types.Uid][]types.DeviceDef, int, error)
- func (m *MockDevicePersistenceInterface) Update(uid types.Uid, oldDeviceID string, dev *types.DeviceDef) error
- type MockDevicePersistenceInterfaceMockRecorder
- func (mr *MockDevicePersistenceInterfaceMockRecorder) Delete(uid, deviceID interface{}) *gomock.Call
- func (mr *MockDevicePersistenceInterfaceMockRecorder) GetAll(uid ...interface{}) *gomock.Call
- func (mr *MockDevicePersistenceInterfaceMockRecorder) Update(uid, oldDeviceID, dev interface{}) *gomock.Call
- type MockFilePersistenceInterface
- func (m *MockFilePersistenceInterface) DeleteUnused(olderThan time.Time, limit int) error
- func (m *MockFilePersistenceInterface) EXPECT() *MockFilePersistenceInterfaceMockRecorder
- func (m *MockFilePersistenceInterface) FinishUpload(fd *types.FileDef, success bool, size int64) (*types.FileDef, error)
- func (m *MockFilePersistenceInterface) Get(fid string) (*types.FileDef, error)
- func (m *MockFilePersistenceInterface) LinkAttachments(topic string, msgId types.Uid, attachments []string) error
- func (m *MockFilePersistenceInterface) StartUpload(fd *types.FileDef) error
- type MockFilePersistenceInterfaceMockRecorder
- func (mr *MockFilePersistenceInterfaceMockRecorder) DeleteUnused(olderThan, limit interface{}) *gomock.Call
- func (mr *MockFilePersistenceInterfaceMockRecorder) FinishUpload(fd, success, size interface{}) *gomock.Call
- func (mr *MockFilePersistenceInterfaceMockRecorder) Get(fid interface{}) *gomock.Call
- func (mr *MockFilePersistenceInterfaceMockRecorder) LinkAttachments(topic, msgId, attachments interface{}) *gomock.Call
- func (mr *MockFilePersistenceInterfaceMockRecorder) StartUpload(fd interface{}) *gomock.Call
- type MockMessagesPersistenceInterface
- func (m *MockMessagesPersistenceInterface) DeleteList(topic string, delID int, forUser types.Uid, ranges []types.Range) error
- func (m *MockMessagesPersistenceInterface) EXPECT() *MockMessagesPersistenceInterfaceMockRecorder
- func (m *MockMessagesPersistenceInterface) GetAll(topic string, forUser types.Uid, opt *types.QueryOpt) ([]types.Message, error)
- func (m *MockMessagesPersistenceInterface) GetDeleted(topic string, forUser types.Uid, opt *types.QueryOpt) ([]types.Range, int, error)
- func (m *MockMessagesPersistenceInterface) Save(msg *types.Message, attachmentURLs []string, readBySender bool) error
- type MockMessagesPersistenceInterfaceMockRecorder
- func (mr *MockMessagesPersistenceInterfaceMockRecorder) DeleteList(topic, delID, forUser, ranges interface{}) *gomock.Call
- func (mr *MockMessagesPersistenceInterfaceMockRecorder) GetAll(topic, forUser, opt interface{}) *gomock.Call
- func (mr *MockMessagesPersistenceInterfaceMockRecorder) GetDeleted(topic, forUser, opt interface{}) *gomock.Call
- func (mr *MockMessagesPersistenceInterfaceMockRecorder) Save(msg, attachmentURLs, readBySender interface{}) *gomock.Call
- type MockPersistentStorageInterface
- func (m *MockPersistentStorageInterface) Close() error
- func (m *MockPersistentStorageInterface) DbStats() func() interface{}
- func (m *MockPersistentStorageInterface) EXPECT() *MockPersistentStorageInterfaceMockRecorder
- func (m *MockPersistentStorageInterface) GetAdapter() adapter.Adapter
- func (m *MockPersistentStorageInterface) GetAdapterName() string
- func (m *MockPersistentStorageInterface) GetAdapterVersion() int
- func (m *MockPersistentStorageInterface) GetAuthHandler(name string) auth.AuthHandler
- func (m *MockPersistentStorageInterface) GetAuthNames() []string
- func (m *MockPersistentStorageInterface) GetDbVersion() int
- func (m *MockPersistentStorageInterface) GetLogicalAuthHandler(name string) auth.AuthHandler
- func (m *MockPersistentStorageInterface) GetMediaHandler() media.Handler
- func (m *MockPersistentStorageInterface) GetUid() types.Uid
- func (m *MockPersistentStorageInterface) GetUidString() string
- func (m *MockPersistentStorageInterface) GetValidator(name string) validate.Validator
- func (m *MockPersistentStorageInterface) InitDb(jsonconf json.RawMessage, reset bool) error
- func (m *MockPersistentStorageInterface) IsOpen() bool
- func (m *MockPersistentStorageInterface) Open(workerId int, jsonconf json.RawMessage) error
- func (m *MockPersistentStorageInterface) UpgradeDb(jsonconf json.RawMessage) error
- func (m *MockPersistentStorageInterface) UseMediaHandler(name, config string) error
- type MockPersistentStorageInterfaceMockRecorder
- func (mr *MockPersistentStorageInterfaceMockRecorder) Close() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) DbStats() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapter() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapterName() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapterVersion() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetAuthHandler(name interface{}) *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetAuthNames() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetDbVersion() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetLogicalAuthHandler(name interface{}) *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetMediaHandler() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetUid() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetUidString() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) GetValidator(name interface{}) *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) InitDb(jsonconf, reset interface{}) *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) IsOpen() *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) Open(workerId, jsonconf interface{}) *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) UpgradeDb(jsonconf interface{}) *gomock.Call
- func (mr *MockPersistentStorageInterfaceMockRecorder) UseMediaHandler(name, config interface{}) *gomock.Call
- type MockSubsPersistenceInterface
- func (m *MockSubsPersistenceInterface) Create(subs ...*types.Subscription) error
- func (m *MockSubsPersistenceInterface) Delete(topic string, user types.Uid) error
- func (m *MockSubsPersistenceInterface) EXPECT() *MockSubsPersistenceInterfaceMockRecorder
- func (m *MockSubsPersistenceInterface) Get(topic string, user types.Uid, keepDeleted bool) (*types.Subscription, error)
- func (m *MockSubsPersistenceInterface) Update(topic string, user types.Uid, update map[string]interface{}) error
- type MockSubsPersistenceInterfaceMockRecorder
- func (mr *MockSubsPersistenceInterfaceMockRecorder) Create(subs ...interface{}) *gomock.Call
- func (mr *MockSubsPersistenceInterfaceMockRecorder) Delete(topic, user interface{}) *gomock.Call
- func (mr *MockSubsPersistenceInterfaceMockRecorder) Get(topic, user, keepDeleted interface{}) *gomock.Call
- func (mr *MockSubsPersistenceInterfaceMockRecorder) Update(topic, user, update interface{}) *gomock.Call
- type MockTopicsPersistenceInterface
- func (m *MockTopicsPersistenceInterface) Create(topic *types.Topic, owner types.Uid, private interface{}) error
- func (m *MockTopicsPersistenceInterface) CreateP2P(initiator, invited *types.Subscription) error
- func (m *MockTopicsPersistenceInterface) Delete(topic string, isChan, hard bool) error
- func (m *MockTopicsPersistenceInterface) EXPECT() *MockTopicsPersistenceInterfaceMockRecorder
- func (m *MockTopicsPersistenceInterface) Get(topic string) (*types.Topic, error)
- func (m *MockTopicsPersistenceInterface) GetSubs(topic string, opts *types.QueryOpt) ([]types.Subscription, error)
- func (m *MockTopicsPersistenceInterface) GetSubsAny(topic string, opts *types.QueryOpt) ([]types.Subscription, error)
- func (m *MockTopicsPersistenceInterface) GetUsers(topic string, opts *types.QueryOpt) ([]types.Subscription, error)
- func (m *MockTopicsPersistenceInterface) GetUsersAny(topic string, opts *types.QueryOpt) ([]types.Subscription, error)
- func (m *MockTopicsPersistenceInterface) OwnerChange(topic string, newOwner types.Uid) error
- func (m *MockTopicsPersistenceInterface) Update(topic string, update map[string]interface{}) error
- type MockTopicsPersistenceInterfaceMockRecorder
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) Create(topic, owner, private interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) CreateP2P(initiator, invited interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) Delete(topic, isChan, hard interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) Get(topic interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetSubs(topic, opts interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetSubsAny(topic, opts interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetUsers(topic, opts interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetUsersAny(topic, opts interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) OwnerChange(topic, newOwner interface{}) *gomock.Call
- func (mr *MockTopicsPersistenceInterfaceMockRecorder) Update(topic, update interface{}) *gomock.Call
- type MockUsersPersistenceInterface
- func (m *MockUsersPersistenceInterface) AddAuthRecord(uid types.Uid, authLvl auth.Level, scheme, unique string, secret []byte, ...) error
- func (m *MockUsersPersistenceInterface) ConfirmCred(id types.Uid, method string) error
- func (m *MockUsersPersistenceInterface) Create(user *types.User, private interface{}) (*types.User, error)
- func (m *MockUsersPersistenceInterface) DelAuthRecords(uid types.Uid, scheme string) error
- func (m *MockUsersPersistenceInterface) DelCred(id types.Uid, method, value string) error
- func (m *MockUsersPersistenceInterface) Delete(id types.Uid, hard bool) error
- func (m *MockUsersPersistenceInterface) EXPECT() *MockUsersPersistenceInterfaceMockRecorder
- func (m *MockUsersPersistenceInterface) FailCred(id types.Uid, method string) error
- func (m *MockUsersPersistenceInterface) FindSubs(id types.Uid, required [][]string, optional []string) ([]types.Subscription, error)
- func (m *MockUsersPersistenceInterface) Get(uid types.Uid) (*types.User, error)
- func (m *MockUsersPersistenceInterface) GetActiveCred(id types.Uid, method string) (*types.Credential, error)
- func (m *MockUsersPersistenceInterface) GetAll(uid ...types.Uid) ([]types.User, error)
- func (m *MockUsersPersistenceInterface) GetAllCreds(id types.Uid, method string, validatedOnly bool) ([]types.Credential, error)
- func (m *MockUsersPersistenceInterface) GetAuthRecord(user types.Uid, scheme string) (string, auth.Level, []byte, time.Time, error)
- func (m *MockUsersPersistenceInterface) GetAuthUniqueRecord(scheme, unique string) (types.Uid, auth.Level, []byte, time.Time, error)
- func (m *MockUsersPersistenceInterface) GetByCred(method, value string) (types.Uid, error)
- func (m *MockUsersPersistenceInterface) GetChannels(id types.Uid) ([]string, error)
- func (m *MockUsersPersistenceInterface) GetOwnTopics(id types.Uid) ([]string, error)
- func (m *MockUsersPersistenceInterface) GetSubs(id types.Uid) ([]types.Subscription, error)
- func (m *MockUsersPersistenceInterface) GetTopics(id types.Uid, opts *types.QueryOpt) ([]types.Subscription, error)
- func (m *MockUsersPersistenceInterface) GetTopicsAny(id types.Uid, opts *types.QueryOpt) ([]types.Subscription, error)
- func (m *MockUsersPersistenceInterface) GetUnreadCount(ids ...types.Uid) (map[types.Uid]int, error)
- func (m *MockUsersPersistenceInterface) GetUnvalidated(lastUpdatedBefore time.Time, limit int) ([]types.Uid, error)
- func (m *MockUsersPersistenceInterface) Update(uid types.Uid, update map[string]interface{}) error
- func (m *MockUsersPersistenceInterface) UpdateAuthRecord(uid types.Uid, authLvl auth.Level, scheme, unique string, secret []byte, ...) error
- func (m *MockUsersPersistenceInterface) UpdateLastSeen(uid types.Uid, userAgent string, when time.Time) error
- func (m *MockUsersPersistenceInterface) UpdateState(uid types.Uid, state types.ObjState) error
- func (m *MockUsersPersistenceInterface) UpdateTags(uid types.Uid, add, remove, reset []string) ([]string, error)
- func (m *MockUsersPersistenceInterface) UpsertCred(cred *types.Credential) (bool, error)
- type MockUsersPersistenceInterfaceMockRecorder
- func (mr *MockUsersPersistenceInterfaceMockRecorder) AddAuthRecord(uid, authLvl, scheme, unique, secret, expires interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) ConfirmCred(id, method interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) Create(user, private interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) DelAuthRecords(uid, scheme interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) DelCred(id, method, value interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) Delete(id, hard interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) FailCred(id, method interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) FindSubs(id, required, optional interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) Get(uid interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetActiveCred(id, method interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAll(uid ...interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAllCreds(id, method, validatedOnly interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAuthRecord(user, scheme interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAuthUniqueRecord(scheme, unique interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetByCred(method, value interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetChannels(id interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetOwnTopics(id interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetSubs(id interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetTopics(id, opts interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetTopicsAny(id, opts interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetUnreadCount(ids ...interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) GetUnvalidated(lastUpdatedBefore, limit interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) Update(uid, update interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateAuthRecord(uid, authLvl, scheme, unique, secret, expires interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateLastSeen(uid, userAgent, when interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateState(uid, state interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateTags(uid, add, remove, reset interface{}) *gomock.Call
- func (mr *MockUsersPersistenceInterfaceMockRecorder) UpsertCred(cred interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDevicePersistenceInterface ¶ added in v0.18.0
type MockDevicePersistenceInterface struct {
// contains filtered or unexported fields
}
MockDevicePersistenceInterface is a mock of DevicePersistenceInterface interface.
func NewMockDevicePersistenceInterface ¶ added in v0.18.0
func NewMockDevicePersistenceInterface(ctrl *gomock.Controller) *MockDevicePersistenceInterface
NewMockDevicePersistenceInterface creates a new mock instance.
func (*MockDevicePersistenceInterface) Delete ¶ added in v0.18.0
func (m *MockDevicePersistenceInterface) Delete(uid types.Uid, deviceID string) error
Delete mocks base method.
func (*MockDevicePersistenceInterface) EXPECT ¶ added in v0.18.0
func (m *MockDevicePersistenceInterface) EXPECT() *MockDevicePersistenceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDevicePersistenceInterfaceMockRecorder ¶ added in v0.18.0
type MockDevicePersistenceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockDevicePersistenceInterfaceMockRecorder is the mock recorder for MockDevicePersistenceInterface.
func (*MockDevicePersistenceInterfaceMockRecorder) Delete ¶ added in v0.18.0
func (mr *MockDevicePersistenceInterfaceMockRecorder) Delete(uid, deviceID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDevicePersistenceInterfaceMockRecorder) GetAll ¶ added in v0.18.0
func (mr *MockDevicePersistenceInterfaceMockRecorder) GetAll(uid ...interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockDevicePersistenceInterfaceMockRecorder) Update ¶ added in v0.18.0
func (mr *MockDevicePersistenceInterfaceMockRecorder) Update(uid, oldDeviceID, dev interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockFilePersistenceInterface ¶ added in v0.18.0
type MockFilePersistenceInterface struct {
// contains filtered or unexported fields
}
MockFilePersistenceInterface is a mock of FilePersistenceInterface interface.
func NewMockFilePersistenceInterface ¶ added in v0.18.0
func NewMockFilePersistenceInterface(ctrl *gomock.Controller) *MockFilePersistenceInterface
NewMockFilePersistenceInterface creates a new mock instance.
func (*MockFilePersistenceInterface) DeleteUnused ¶ added in v0.18.0
func (m *MockFilePersistenceInterface) DeleteUnused(olderThan time.Time, limit int) error
DeleteUnused mocks base method.
func (*MockFilePersistenceInterface) EXPECT ¶ added in v0.18.0
func (m *MockFilePersistenceInterface) EXPECT() *MockFilePersistenceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFilePersistenceInterface) FinishUpload ¶ added in v0.18.0
func (m *MockFilePersistenceInterface) FinishUpload(fd *types.FileDef, success bool, size int64) (*types.FileDef, error)
FinishUpload mocks base method.
func (*MockFilePersistenceInterface) Get ¶ added in v0.18.0
func (m *MockFilePersistenceInterface) Get(fid string) (*types.FileDef, error)
Get mocks base method.
func (*MockFilePersistenceInterface) LinkAttachments ¶ added in v0.18.0
func (m *MockFilePersistenceInterface) LinkAttachments(topic string, msgId types.Uid, attachments []string) error
LinkAttachments mocks base method.
func (*MockFilePersistenceInterface) StartUpload ¶ added in v0.18.0
func (m *MockFilePersistenceInterface) StartUpload(fd *types.FileDef) error
StartUpload mocks base method.
type MockFilePersistenceInterfaceMockRecorder ¶ added in v0.18.0
type MockFilePersistenceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFilePersistenceInterfaceMockRecorder is the mock recorder for MockFilePersistenceInterface.
func (*MockFilePersistenceInterfaceMockRecorder) DeleteUnused ¶ added in v0.18.0
func (mr *MockFilePersistenceInterfaceMockRecorder) DeleteUnused(olderThan, limit interface{}) *gomock.Call
DeleteUnused indicates an expected call of DeleteUnused.
func (*MockFilePersistenceInterfaceMockRecorder) FinishUpload ¶ added in v0.18.0
func (mr *MockFilePersistenceInterfaceMockRecorder) FinishUpload(fd, success, size interface{}) *gomock.Call
FinishUpload indicates an expected call of FinishUpload.
func (*MockFilePersistenceInterfaceMockRecorder) Get ¶ added in v0.18.0
func (mr *MockFilePersistenceInterfaceMockRecorder) Get(fid interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockFilePersistenceInterfaceMockRecorder) LinkAttachments ¶ added in v0.18.0
func (mr *MockFilePersistenceInterfaceMockRecorder) LinkAttachments(topic, msgId, attachments interface{}) *gomock.Call
LinkAttachments indicates an expected call of LinkAttachments.
func (*MockFilePersistenceInterfaceMockRecorder) StartUpload ¶ added in v0.18.0
func (mr *MockFilePersistenceInterfaceMockRecorder) StartUpload(fd interface{}) *gomock.Call
StartUpload indicates an expected call of StartUpload.
type MockMessagesPersistenceInterface ¶ added in v0.18.0
type MockMessagesPersistenceInterface struct {
// contains filtered or unexported fields
}
MockMessagesPersistenceInterface is a mock of MessagesPersistenceInterface interface.
func NewMockMessagesPersistenceInterface ¶ added in v0.18.0
func NewMockMessagesPersistenceInterface(ctrl *gomock.Controller) *MockMessagesPersistenceInterface
NewMockMessagesPersistenceInterface creates a new mock instance.
func (*MockMessagesPersistenceInterface) DeleteList ¶ added in v0.18.0
func (m *MockMessagesPersistenceInterface) DeleteList(topic string, delID int, forUser types.Uid, ranges []types.Range) error
DeleteList mocks base method.
func (*MockMessagesPersistenceInterface) EXPECT ¶ added in v0.18.0
func (m *MockMessagesPersistenceInterface) EXPECT() *MockMessagesPersistenceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMessagesPersistenceInterface) GetAll ¶ added in v0.18.0
func (m *MockMessagesPersistenceInterface) GetAll(topic string, forUser types.Uid, opt *types.QueryOpt) ([]types.Message, error)
GetAll mocks base method.
type MockMessagesPersistenceInterfaceMockRecorder ¶ added in v0.18.0
type MockMessagesPersistenceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockMessagesPersistenceInterfaceMockRecorder is the mock recorder for MockMessagesPersistenceInterface.
func (*MockMessagesPersistenceInterfaceMockRecorder) DeleteList ¶ added in v0.18.0
func (mr *MockMessagesPersistenceInterfaceMockRecorder) DeleteList(topic, delID, forUser, ranges interface{}) *gomock.Call
DeleteList indicates an expected call of DeleteList.
func (*MockMessagesPersistenceInterfaceMockRecorder) GetAll ¶ added in v0.18.0
func (mr *MockMessagesPersistenceInterfaceMockRecorder) GetAll(topic, forUser, opt interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockMessagesPersistenceInterfaceMockRecorder) GetDeleted ¶ added in v0.18.0
func (mr *MockMessagesPersistenceInterfaceMockRecorder) GetDeleted(topic, forUser, opt interface{}) *gomock.Call
GetDeleted indicates an expected call of GetDeleted.
func (*MockMessagesPersistenceInterfaceMockRecorder) Save ¶ added in v0.18.0
func (mr *MockMessagesPersistenceInterfaceMockRecorder) Save(msg, attachmentURLs, readBySender interface{}) *gomock.Call
Save indicates an expected call of Save.
type MockPersistentStorageInterface ¶ added in v0.18.0
type MockPersistentStorageInterface struct {
// contains filtered or unexported fields
}
MockPersistentStorageInterface is a mock of PersistentStorageInterface interface.
func NewMockPersistentStorageInterface ¶ added in v0.18.0
func NewMockPersistentStorageInterface(ctrl *gomock.Controller) *MockPersistentStorageInterface
NewMockPersistentStorageInterface creates a new mock instance.
func (*MockPersistentStorageInterface) Close ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) Close() error
Close mocks base method.
func (*MockPersistentStorageInterface) DbStats ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) DbStats() func() interface{}
DbStats mocks base method.
func (*MockPersistentStorageInterface) EXPECT ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) EXPECT() *MockPersistentStorageInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPersistentStorageInterface) GetAdapter ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetAdapter() adapter.Adapter
GetAdapter mocks base method.
func (*MockPersistentStorageInterface) GetAdapterName ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetAdapterName() string
GetAdapterName mocks base method.
func (*MockPersistentStorageInterface) GetAdapterVersion ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetAdapterVersion() int
GetAdapterVersion mocks base method.
func (*MockPersistentStorageInterface) GetAuthHandler ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetAuthHandler(name string) auth.AuthHandler
GetAuthHandler mocks base method.
func (*MockPersistentStorageInterface) GetAuthNames ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetAuthNames() []string
GetAuthNames mocks base method.
func (*MockPersistentStorageInterface) GetDbVersion ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetDbVersion() int
GetDbVersion mocks base method.
func (*MockPersistentStorageInterface) GetLogicalAuthHandler ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetLogicalAuthHandler(name string) auth.AuthHandler
GetLogicalAuthHandler mocks base method.
func (*MockPersistentStorageInterface) GetMediaHandler ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetMediaHandler() media.Handler
GetMediaHandler mocks base method.
func (*MockPersistentStorageInterface) GetUid ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetUid() types.Uid
GetUid mocks base method.
func (*MockPersistentStorageInterface) GetUidString ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetUidString() string
GetUidString mocks base method.
func (*MockPersistentStorageInterface) GetValidator ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) GetValidator(name string) validate.Validator
GetValidator mocks base method.
func (*MockPersistentStorageInterface) InitDb ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) InitDb(jsonconf json.RawMessage, reset bool) error
InitDb mocks base method.
func (*MockPersistentStorageInterface) IsOpen ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) IsOpen() bool
IsOpen mocks base method.
func (*MockPersistentStorageInterface) Open ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) Open(workerId int, jsonconf json.RawMessage) error
Open mocks base method.
func (*MockPersistentStorageInterface) UpgradeDb ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) UpgradeDb(jsonconf json.RawMessage) error
UpgradeDb mocks base method.
func (*MockPersistentStorageInterface) UseMediaHandler ¶ added in v0.18.0
func (m *MockPersistentStorageInterface) UseMediaHandler(name, config string) error
UseMediaHandler mocks base method.
type MockPersistentStorageInterfaceMockRecorder ¶ added in v0.18.0
type MockPersistentStorageInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockPersistentStorageInterfaceMockRecorder is the mock recorder for MockPersistentStorageInterface.
func (*MockPersistentStorageInterfaceMockRecorder) Close ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockPersistentStorageInterfaceMockRecorder) DbStats ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) DbStats() *gomock.Call
DbStats indicates an expected call of DbStats.
func (*MockPersistentStorageInterfaceMockRecorder) GetAdapter ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapter() *gomock.Call
GetAdapter indicates an expected call of GetAdapter.
func (*MockPersistentStorageInterfaceMockRecorder) GetAdapterName ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapterName() *gomock.Call
GetAdapterName indicates an expected call of GetAdapterName.
func (*MockPersistentStorageInterfaceMockRecorder) GetAdapterVersion ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapterVersion() *gomock.Call
GetAdapterVersion indicates an expected call of GetAdapterVersion.
func (*MockPersistentStorageInterfaceMockRecorder) GetAuthHandler ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetAuthHandler(name interface{}) *gomock.Call
GetAuthHandler indicates an expected call of GetAuthHandler.
func (*MockPersistentStorageInterfaceMockRecorder) GetAuthNames ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetAuthNames() *gomock.Call
GetAuthNames indicates an expected call of GetAuthNames.
func (*MockPersistentStorageInterfaceMockRecorder) GetDbVersion ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetDbVersion() *gomock.Call
GetDbVersion indicates an expected call of GetDbVersion.
func (*MockPersistentStorageInterfaceMockRecorder) GetLogicalAuthHandler ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetLogicalAuthHandler(name interface{}) *gomock.Call
GetLogicalAuthHandler indicates an expected call of GetLogicalAuthHandler.
func (*MockPersistentStorageInterfaceMockRecorder) GetMediaHandler ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetMediaHandler() *gomock.Call
GetMediaHandler indicates an expected call of GetMediaHandler.
func (*MockPersistentStorageInterfaceMockRecorder) GetUid ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetUid() *gomock.Call
GetUid indicates an expected call of GetUid.
func (*MockPersistentStorageInterfaceMockRecorder) GetUidString ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetUidString() *gomock.Call
GetUidString indicates an expected call of GetUidString.
func (*MockPersistentStorageInterfaceMockRecorder) GetValidator ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) GetValidator(name interface{}) *gomock.Call
GetValidator indicates an expected call of GetValidator.
func (*MockPersistentStorageInterfaceMockRecorder) InitDb ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) InitDb(jsonconf, reset interface{}) *gomock.Call
InitDb indicates an expected call of InitDb.
func (*MockPersistentStorageInterfaceMockRecorder) IsOpen ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) IsOpen() *gomock.Call
IsOpen indicates an expected call of IsOpen.
func (*MockPersistentStorageInterfaceMockRecorder) Open ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) Open(workerId, jsonconf interface{}) *gomock.Call
Open indicates an expected call of Open.
func (*MockPersistentStorageInterfaceMockRecorder) UpgradeDb ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) UpgradeDb(jsonconf interface{}) *gomock.Call
UpgradeDb indicates an expected call of UpgradeDb.
func (*MockPersistentStorageInterfaceMockRecorder) UseMediaHandler ¶ added in v0.18.0
func (mr *MockPersistentStorageInterfaceMockRecorder) UseMediaHandler(name, config interface{}) *gomock.Call
UseMediaHandler indicates an expected call of UseMediaHandler.
type MockSubsPersistenceInterface ¶ added in v0.18.0
type MockSubsPersistenceInterface struct {
// contains filtered or unexported fields
}
MockSubsPersistenceInterface is a mock of SubsPersistenceInterface interface.
func NewMockSubsPersistenceInterface ¶ added in v0.18.0
func NewMockSubsPersistenceInterface(ctrl *gomock.Controller) *MockSubsPersistenceInterface
NewMockSubsPersistenceInterface creates a new mock instance.
func (*MockSubsPersistenceInterface) Create ¶ added in v0.18.0
func (m *MockSubsPersistenceInterface) Create(subs ...*types.Subscription) error
Create mocks base method.
func (*MockSubsPersistenceInterface) Delete ¶ added in v0.18.0
func (m *MockSubsPersistenceInterface) Delete(topic string, user types.Uid) error
Delete mocks base method.
func (*MockSubsPersistenceInterface) EXPECT ¶ added in v0.18.0
func (m *MockSubsPersistenceInterface) EXPECT() *MockSubsPersistenceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubsPersistenceInterface) Get ¶ added in v0.18.0
func (m *MockSubsPersistenceInterface) Get(topic string, user types.Uid, keepDeleted bool) (*types.Subscription, error)
Get mocks base method.
type MockSubsPersistenceInterfaceMockRecorder ¶ added in v0.18.0
type MockSubsPersistenceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSubsPersistenceInterfaceMockRecorder is the mock recorder for MockSubsPersistenceInterface.
func (*MockSubsPersistenceInterfaceMockRecorder) Create ¶ added in v0.18.0
func (mr *MockSubsPersistenceInterfaceMockRecorder) Create(subs ...interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockSubsPersistenceInterfaceMockRecorder) Delete ¶ added in v0.18.0
func (mr *MockSubsPersistenceInterfaceMockRecorder) Delete(topic, user interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSubsPersistenceInterfaceMockRecorder) Get ¶ added in v0.18.0
func (mr *MockSubsPersistenceInterfaceMockRecorder) Get(topic, user, keepDeleted interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockSubsPersistenceInterfaceMockRecorder) Update ¶ added in v0.18.0
func (mr *MockSubsPersistenceInterfaceMockRecorder) Update(topic, user, update interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockTopicsPersistenceInterface ¶ added in v0.18.0
type MockTopicsPersistenceInterface struct {
// contains filtered or unexported fields
}
MockTopicsPersistenceInterface is a mock of TopicsPersistenceInterface interface.
func NewMockTopicsPersistenceInterface ¶ added in v0.18.0
func NewMockTopicsPersistenceInterface(ctrl *gomock.Controller) *MockTopicsPersistenceInterface
NewMockTopicsPersistenceInterface creates a new mock instance.
func (*MockTopicsPersistenceInterface) Create ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) Create(topic *types.Topic, owner types.Uid, private interface{}) error
Create mocks base method.
func (*MockTopicsPersistenceInterface) CreateP2P ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) CreateP2P(initiator, invited *types.Subscription) error
CreateP2P mocks base method.
func (*MockTopicsPersistenceInterface) Delete ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) Delete(topic string, isChan, hard bool) error
Delete mocks base method.
func (*MockTopicsPersistenceInterface) EXPECT ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) EXPECT() *MockTopicsPersistenceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTopicsPersistenceInterface) Get ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) Get(topic string) (*types.Topic, error)
Get mocks base method.
func (*MockTopicsPersistenceInterface) GetSubs ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) GetSubs(topic string, opts *types.QueryOpt) ([]types.Subscription, error)
GetSubs mocks base method.
func (*MockTopicsPersistenceInterface) GetSubsAny ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) GetSubsAny(topic string, opts *types.QueryOpt) ([]types.Subscription, error)
GetSubsAny mocks base method.
func (*MockTopicsPersistenceInterface) GetUsers ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) GetUsers(topic string, opts *types.QueryOpt) ([]types.Subscription, error)
GetUsers mocks base method.
func (*MockTopicsPersistenceInterface) GetUsersAny ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) GetUsersAny(topic string, opts *types.QueryOpt) ([]types.Subscription, error)
GetUsersAny mocks base method.
func (*MockTopicsPersistenceInterface) OwnerChange ¶ added in v0.18.0
func (m *MockTopicsPersistenceInterface) OwnerChange(topic string, newOwner types.Uid) error
OwnerChange mocks base method.
type MockTopicsPersistenceInterfaceMockRecorder ¶ added in v0.18.0
type MockTopicsPersistenceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockTopicsPersistenceInterfaceMockRecorder is the mock recorder for MockTopicsPersistenceInterface.
func (*MockTopicsPersistenceInterfaceMockRecorder) Create ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) Create(topic, owner, private interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockTopicsPersistenceInterfaceMockRecorder) CreateP2P ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) CreateP2P(initiator, invited interface{}) *gomock.Call
CreateP2P indicates an expected call of CreateP2P.
func (*MockTopicsPersistenceInterfaceMockRecorder) Delete ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) Delete(topic, isChan, hard interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTopicsPersistenceInterfaceMockRecorder) Get ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) Get(topic interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockTopicsPersistenceInterfaceMockRecorder) GetSubs ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetSubs(topic, opts interface{}) *gomock.Call
GetSubs indicates an expected call of GetSubs.
func (*MockTopicsPersistenceInterfaceMockRecorder) GetSubsAny ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetSubsAny(topic, opts interface{}) *gomock.Call
GetSubsAny indicates an expected call of GetSubsAny.
func (*MockTopicsPersistenceInterfaceMockRecorder) GetUsers ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetUsers(topic, opts interface{}) *gomock.Call
GetUsers indicates an expected call of GetUsers.
func (*MockTopicsPersistenceInterfaceMockRecorder) GetUsersAny ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetUsersAny(topic, opts interface{}) *gomock.Call
GetUsersAny indicates an expected call of GetUsersAny.
func (*MockTopicsPersistenceInterfaceMockRecorder) OwnerChange ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) OwnerChange(topic, newOwner interface{}) *gomock.Call
OwnerChange indicates an expected call of OwnerChange.
func (*MockTopicsPersistenceInterfaceMockRecorder) Update ¶ added in v0.18.0
func (mr *MockTopicsPersistenceInterfaceMockRecorder) Update(topic, update interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockUsersPersistenceInterface ¶ added in v0.18.0
type MockUsersPersistenceInterface struct {
// contains filtered or unexported fields
}
MockUsersPersistenceInterface is a mock of UsersPersistenceInterface interface.
func NewMockUsersPersistenceInterface ¶ added in v0.18.0
func NewMockUsersPersistenceInterface(ctrl *gomock.Controller) *MockUsersPersistenceInterface
NewMockUsersPersistenceInterface creates a new mock instance.
func (*MockUsersPersistenceInterface) AddAuthRecord ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) AddAuthRecord(uid types.Uid, authLvl auth.Level, scheme, unique string, secret []byte, expires time.Time) error
AddAuthRecord mocks base method.
func (*MockUsersPersistenceInterface) ConfirmCred ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) ConfirmCred(id types.Uid, method string) error
ConfirmCred mocks base method.
func (*MockUsersPersistenceInterface) Create ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) Create(user *types.User, private interface{}) (*types.User, error)
Create mocks base method.
func (*MockUsersPersistenceInterface) DelAuthRecords ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) DelAuthRecords(uid types.Uid, scheme string) error
DelAuthRecords mocks base method.
func (*MockUsersPersistenceInterface) DelCred ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) DelCred(id types.Uid, method, value string) error
DelCred mocks base method.
func (*MockUsersPersistenceInterface) Delete ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) Delete(id types.Uid, hard bool) error
Delete mocks base method.
func (*MockUsersPersistenceInterface) EXPECT ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) EXPECT() *MockUsersPersistenceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUsersPersistenceInterface) FailCred ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) FailCred(id types.Uid, method string) error
FailCred mocks base method.
func (*MockUsersPersistenceInterface) FindSubs ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) FindSubs(id types.Uid, required [][]string, optional []string) ([]types.Subscription, error)
FindSubs mocks base method.
func (*MockUsersPersistenceInterface) GetActiveCred ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetActiveCred(id types.Uid, method string) (*types.Credential, error)
GetActiveCred mocks base method.
func (*MockUsersPersistenceInterface) GetAllCreds ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetAllCreds(id types.Uid, method string, validatedOnly bool) ([]types.Credential, error)
GetAllCreds mocks base method.
func (*MockUsersPersistenceInterface) GetAuthRecord ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetAuthRecord(user types.Uid, scheme string) (string, auth.Level, []byte, time.Time, error)
GetAuthRecord mocks base method.
func (*MockUsersPersistenceInterface) GetAuthUniqueRecord ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetAuthUniqueRecord(scheme, unique string) (types.Uid, auth.Level, []byte, time.Time, error)
GetAuthUniqueRecord mocks base method.
func (*MockUsersPersistenceInterface) GetByCred ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetByCred(method, value string) (types.Uid, error)
GetByCred mocks base method.
func (*MockUsersPersistenceInterface) GetChannels ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetChannels(id types.Uid) ([]string, error)
GetChannels mocks base method.
func (*MockUsersPersistenceInterface) GetOwnTopics ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetOwnTopics(id types.Uid) ([]string, error)
GetOwnTopics mocks base method.
func (*MockUsersPersistenceInterface) GetSubs ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetSubs(id types.Uid) ([]types.Subscription, error)
GetSubs mocks base method.
func (*MockUsersPersistenceInterface) GetTopics ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetTopics(id types.Uid, opts *types.QueryOpt) ([]types.Subscription, error)
GetTopics mocks base method.
func (*MockUsersPersistenceInterface) GetTopicsAny ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) GetTopicsAny(id types.Uid, opts *types.QueryOpt) ([]types.Subscription, error)
GetTopicsAny mocks base method.
func (*MockUsersPersistenceInterface) GetUnreadCount ¶ added in v0.18.0
GetUnreadCount mocks base method.
func (*MockUsersPersistenceInterface) GetUnvalidated ¶ added in v0.21.0
func (m *MockUsersPersistenceInterface) GetUnvalidated(lastUpdatedBefore time.Time, limit int) ([]types.Uid, error)
GetUnvalidated mocks base method.
func (*MockUsersPersistenceInterface) Update ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) Update(uid types.Uid, update map[string]interface{}) error
Update mocks base method.
func (*MockUsersPersistenceInterface) UpdateAuthRecord ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) UpdateAuthRecord(uid types.Uid, authLvl auth.Level, scheme, unique string, secret []byte, expires time.Time) error
UpdateAuthRecord mocks base method.
func (*MockUsersPersistenceInterface) UpdateLastSeen ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) UpdateLastSeen(uid types.Uid, userAgent string, when time.Time) error
UpdateLastSeen mocks base method.
func (*MockUsersPersistenceInterface) UpdateState ¶ added in v0.18.0
UpdateState mocks base method.
func (*MockUsersPersistenceInterface) UpdateTags ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) UpdateTags(uid types.Uid, add, remove, reset []string) ([]string, error)
UpdateTags mocks base method.
func (*MockUsersPersistenceInterface) UpsertCred ¶ added in v0.18.0
func (m *MockUsersPersistenceInterface) UpsertCred(cred *types.Credential) (bool, error)
UpsertCred mocks base method.
type MockUsersPersistenceInterfaceMockRecorder ¶ added in v0.18.0
type MockUsersPersistenceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockUsersPersistenceInterfaceMockRecorder is the mock recorder for MockUsersPersistenceInterface.
func (*MockUsersPersistenceInterfaceMockRecorder) AddAuthRecord ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) AddAuthRecord(uid, authLvl, scheme, unique, secret, expires interface{}) *gomock.Call
AddAuthRecord indicates an expected call of AddAuthRecord.
func (*MockUsersPersistenceInterfaceMockRecorder) ConfirmCred ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) ConfirmCred(id, method interface{}) *gomock.Call
ConfirmCred indicates an expected call of ConfirmCred.
func (*MockUsersPersistenceInterfaceMockRecorder) Create ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) Create(user, private interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUsersPersistenceInterfaceMockRecorder) DelAuthRecords ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) DelAuthRecords(uid, scheme interface{}) *gomock.Call
DelAuthRecords indicates an expected call of DelAuthRecords.
func (*MockUsersPersistenceInterfaceMockRecorder) DelCred ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) DelCred(id, method, value interface{}) *gomock.Call
DelCred indicates an expected call of DelCred.
func (*MockUsersPersistenceInterfaceMockRecorder) Delete ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) Delete(id, hard interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUsersPersistenceInterfaceMockRecorder) FailCred ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) FailCred(id, method interface{}) *gomock.Call
FailCred indicates an expected call of FailCred.
func (*MockUsersPersistenceInterfaceMockRecorder) FindSubs ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) FindSubs(id, required, optional interface{}) *gomock.Call
FindSubs indicates an expected call of FindSubs.
func (*MockUsersPersistenceInterfaceMockRecorder) Get ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) Get(uid interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockUsersPersistenceInterfaceMockRecorder) GetActiveCred ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetActiveCred(id, method interface{}) *gomock.Call
GetActiveCred indicates an expected call of GetActiveCred.
func (*MockUsersPersistenceInterfaceMockRecorder) GetAll ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAll(uid ...interface{}) *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockUsersPersistenceInterfaceMockRecorder) GetAllCreds ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAllCreds(id, method, validatedOnly interface{}) *gomock.Call
GetAllCreds indicates an expected call of GetAllCreds.
func (*MockUsersPersistenceInterfaceMockRecorder) GetAuthRecord ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAuthRecord(user, scheme interface{}) *gomock.Call
GetAuthRecord indicates an expected call of GetAuthRecord.
func (*MockUsersPersistenceInterfaceMockRecorder) GetAuthUniqueRecord ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAuthUniqueRecord(scheme, unique interface{}) *gomock.Call
GetAuthUniqueRecord indicates an expected call of GetAuthUniqueRecord.
func (*MockUsersPersistenceInterfaceMockRecorder) GetByCred ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetByCred(method, value interface{}) *gomock.Call
GetByCred indicates an expected call of GetByCred.
func (*MockUsersPersistenceInterfaceMockRecorder) GetChannels ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetChannels(id interface{}) *gomock.Call
GetChannels indicates an expected call of GetChannels.
func (*MockUsersPersistenceInterfaceMockRecorder) GetOwnTopics ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetOwnTopics(id interface{}) *gomock.Call
GetOwnTopics indicates an expected call of GetOwnTopics.
func (*MockUsersPersistenceInterfaceMockRecorder) GetSubs ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetSubs(id interface{}) *gomock.Call
GetSubs indicates an expected call of GetSubs.
func (*MockUsersPersistenceInterfaceMockRecorder) GetTopics ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetTopics(id, opts interface{}) *gomock.Call
GetTopics indicates an expected call of GetTopics.
func (*MockUsersPersistenceInterfaceMockRecorder) GetTopicsAny ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetTopicsAny(id, opts interface{}) *gomock.Call
GetTopicsAny indicates an expected call of GetTopicsAny.
func (*MockUsersPersistenceInterfaceMockRecorder) GetUnreadCount ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetUnreadCount(ids ...interface{}) *gomock.Call
GetUnreadCount indicates an expected call of GetUnreadCount.
func (*MockUsersPersistenceInterfaceMockRecorder) GetUnvalidated ¶ added in v0.21.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) GetUnvalidated(lastUpdatedBefore, limit interface{}) *gomock.Call
GetUnvalidated indicates an expected call of GetUnvalidated.
func (*MockUsersPersistenceInterfaceMockRecorder) Update ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) Update(uid, update interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockUsersPersistenceInterfaceMockRecorder) UpdateAuthRecord ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateAuthRecord(uid, authLvl, scheme, unique, secret, expires interface{}) *gomock.Call
UpdateAuthRecord indicates an expected call of UpdateAuthRecord.
func (*MockUsersPersistenceInterfaceMockRecorder) UpdateLastSeen ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateLastSeen(uid, userAgent, when interface{}) *gomock.Call
UpdateLastSeen indicates an expected call of UpdateLastSeen.
func (*MockUsersPersistenceInterfaceMockRecorder) UpdateState ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateState(uid, state interface{}) *gomock.Call
UpdateState indicates an expected call of UpdateState.
func (*MockUsersPersistenceInterfaceMockRecorder) UpdateTags ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateTags(uid, add, remove, reset interface{}) *gomock.Call
UpdateTags indicates an expected call of UpdateTags.
func (*MockUsersPersistenceInterfaceMockRecorder) UpsertCred ¶ added in v0.18.0
func (mr *MockUsersPersistenceInterfaceMockRecorder) UpsertCred(cred interface{}) *gomock.Call
UpsertCred indicates an expected call of UpsertCred.