mock_store

package
v0.20.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package mock_store is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDevicePersistenceInterface

type MockDevicePersistenceInterface struct {
	// contains filtered or unexported fields
}

MockDevicePersistenceInterface is a mock of DevicePersistenceInterface interface.

func NewMockDevicePersistenceInterface

func NewMockDevicePersistenceInterface(ctrl *gomock.Controller) *MockDevicePersistenceInterface

NewMockDevicePersistenceInterface creates a new mock instance.

func (*MockDevicePersistenceInterface) Delete

func (m *MockDevicePersistenceInterface) Delete(uid types.Uid, deviceID string) error

Delete mocks base method.

func (*MockDevicePersistenceInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDevicePersistenceInterface) GetAll

GetAll mocks base method.

func (*MockDevicePersistenceInterface) Update

func (m *MockDevicePersistenceInterface) Update(uid types.Uid, oldDeviceID string, dev *types.DeviceDef) error

Update mocks base method.

type MockDevicePersistenceInterfaceMockRecorder

type MockDevicePersistenceInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockDevicePersistenceInterfaceMockRecorder is the mock recorder for MockDevicePersistenceInterface.

func (*MockDevicePersistenceInterfaceMockRecorder) Delete

func (mr *MockDevicePersistenceInterfaceMockRecorder) Delete(uid, deviceID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockDevicePersistenceInterfaceMockRecorder) GetAll

func (mr *MockDevicePersistenceInterfaceMockRecorder) GetAll(uid ...interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockDevicePersistenceInterfaceMockRecorder) Update

func (mr *MockDevicePersistenceInterfaceMockRecorder) Update(uid, oldDeviceID, dev interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockFilePersistenceInterface

type MockFilePersistenceInterface struct {
	// contains filtered or unexported fields
}

MockFilePersistenceInterface is a mock of FilePersistenceInterface interface.

func NewMockFilePersistenceInterface

func NewMockFilePersistenceInterface(ctrl *gomock.Controller) *MockFilePersistenceInterface

NewMockFilePersistenceInterface creates a new mock instance.

func (*MockFilePersistenceInterface) DeleteUnused

func (m *MockFilePersistenceInterface) DeleteUnused(olderThan time.Time, limit int) error

DeleteUnused mocks base method.

func (*MockFilePersistenceInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFilePersistenceInterface) FinishUpload

func (m *MockFilePersistenceInterface) FinishUpload(fd *types.FileDef, success bool, size int64) (*types.FileDef, error)

FinishUpload mocks base method.

func (*MockFilePersistenceInterface) Get

Get mocks base method.

func (*MockFilePersistenceInterface) LinkAttachments

func (m *MockFilePersistenceInterface) LinkAttachments(topic string, msgId types.Uid, attachments []string) error

LinkAttachments mocks base method.

func (*MockFilePersistenceInterface) StartUpload

func (m *MockFilePersistenceInterface) StartUpload(fd *types.FileDef) error

StartUpload mocks base method.

type MockFilePersistenceInterfaceMockRecorder

type MockFilePersistenceInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockFilePersistenceInterfaceMockRecorder is the mock recorder for MockFilePersistenceInterface.

func (*MockFilePersistenceInterfaceMockRecorder) DeleteUnused

func (mr *MockFilePersistenceInterfaceMockRecorder) DeleteUnused(olderThan, limit interface{}) *gomock.Call

DeleteUnused indicates an expected call of DeleteUnused.

func (*MockFilePersistenceInterfaceMockRecorder) FinishUpload

func (mr *MockFilePersistenceInterfaceMockRecorder) FinishUpload(fd, success, size interface{}) *gomock.Call

FinishUpload indicates an expected call of FinishUpload.

func (*MockFilePersistenceInterfaceMockRecorder) Get

func (mr *MockFilePersistenceInterfaceMockRecorder) Get(fid interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockFilePersistenceInterfaceMockRecorder) LinkAttachments

func (mr *MockFilePersistenceInterfaceMockRecorder) LinkAttachments(topic, msgId, attachments interface{}) *gomock.Call

LinkAttachments indicates an expected call of LinkAttachments.

func (*MockFilePersistenceInterfaceMockRecorder) StartUpload

func (mr *MockFilePersistenceInterfaceMockRecorder) StartUpload(fd interface{}) *gomock.Call

StartUpload indicates an expected call of StartUpload.

type MockMessagesPersistenceInterface

type MockMessagesPersistenceInterface struct {
	// contains filtered or unexported fields
}

MockMessagesPersistenceInterface is a mock of MessagesPersistenceInterface interface.

func NewMockMessagesPersistenceInterface

func NewMockMessagesPersistenceInterface(ctrl *gomock.Controller) *MockMessagesPersistenceInterface

NewMockMessagesPersistenceInterface creates a new mock instance.

func (*MockMessagesPersistenceInterface) DeleteList

func (m *MockMessagesPersistenceInterface) DeleteList(topic string, delID int, forUser types.Uid, ranges []types.Range) error

DeleteList mocks base method.

func (*MockMessagesPersistenceInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMessagesPersistenceInterface) GetAll

func (m *MockMessagesPersistenceInterface) GetAll(topic string, forUser types.Uid, opt *types.QueryOpt) ([]types.Message, error)

GetAll mocks base method.

func (*MockMessagesPersistenceInterface) GetDeleted

func (m *MockMessagesPersistenceInterface) GetDeleted(topic string, forUser types.Uid, opt *types.QueryOpt) ([]types.Range, int, error)

GetDeleted mocks base method.

func (*MockMessagesPersistenceInterface) Save

func (m *MockMessagesPersistenceInterface) Save(msg *types.Message, attachmentURLs []string, readBySender bool) error

Save mocks base method.

type MockMessagesPersistenceInterfaceMockRecorder

type MockMessagesPersistenceInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockMessagesPersistenceInterfaceMockRecorder is the mock recorder for MockMessagesPersistenceInterface.

func (*MockMessagesPersistenceInterfaceMockRecorder) DeleteList

func (mr *MockMessagesPersistenceInterfaceMockRecorder) DeleteList(topic, delID, forUser, ranges interface{}) *gomock.Call

DeleteList indicates an expected call of DeleteList.

func (*MockMessagesPersistenceInterfaceMockRecorder) GetAll

func (mr *MockMessagesPersistenceInterfaceMockRecorder) GetAll(topic, forUser, opt interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockMessagesPersistenceInterfaceMockRecorder) GetDeleted

func (mr *MockMessagesPersistenceInterfaceMockRecorder) GetDeleted(topic, forUser, opt interface{}) *gomock.Call

GetDeleted indicates an expected call of GetDeleted.

func (*MockMessagesPersistenceInterfaceMockRecorder) Save

func (mr *MockMessagesPersistenceInterfaceMockRecorder) Save(msg, attachmentURLs, readBySender interface{}) *gomock.Call

Save indicates an expected call of Save.

type MockPersistentStorageInterface

type MockPersistentStorageInterface struct {
	// contains filtered or unexported fields
}

MockPersistentStorageInterface is a mock of PersistentStorageInterface interface.

func NewMockPersistentStorageInterface

func NewMockPersistentStorageInterface(ctrl *gomock.Controller) *MockPersistentStorageInterface

NewMockPersistentStorageInterface creates a new mock instance.

func (*MockPersistentStorageInterface) Close

Close mocks base method.

func (*MockPersistentStorageInterface) DbStats

func (m *MockPersistentStorageInterface) DbStats() func() interface{}

DbStats mocks base method.

func (*MockPersistentStorageInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPersistentStorageInterface) GetAdapter

GetAdapter mocks base method.

func (*MockPersistentStorageInterface) GetAdapterName

func (m *MockPersistentStorageInterface) GetAdapterName() string

GetAdapterName mocks base method.

func (*MockPersistentStorageInterface) GetAdapterVersion

func (m *MockPersistentStorageInterface) GetAdapterVersion() int

GetAdapterVersion mocks base method.

func (*MockPersistentStorageInterface) GetAuthHandler

func (m *MockPersistentStorageInterface) GetAuthHandler(name string) auth.AuthHandler

GetAuthHandler mocks base method.

func (*MockPersistentStorageInterface) GetAuthNames

func (m *MockPersistentStorageInterface) GetAuthNames() []string

GetAuthNames mocks base method.

func (*MockPersistentStorageInterface) GetDbVersion

func (m *MockPersistentStorageInterface) GetDbVersion() int

GetDbVersion mocks base method.

func (*MockPersistentStorageInterface) GetLogicalAuthHandler

func (m *MockPersistentStorageInterface) GetLogicalAuthHandler(name string) auth.AuthHandler

GetLogicalAuthHandler mocks base method.

func (*MockPersistentStorageInterface) GetMediaHandler

func (m *MockPersistentStorageInterface) GetMediaHandler() media.Handler

GetMediaHandler mocks base method.

func (*MockPersistentStorageInterface) GetUid

GetUid mocks base method.

func (*MockPersistentStorageInterface) GetUidString

func (m *MockPersistentStorageInterface) GetUidString() string

GetUidString mocks base method.

func (*MockPersistentStorageInterface) GetValidator

GetValidator mocks base method.

func (*MockPersistentStorageInterface) InitDb

func (m *MockPersistentStorageInterface) InitDb(jsonconf json.RawMessage, reset bool) error

InitDb mocks base method.

func (*MockPersistentStorageInterface) IsOpen

IsOpen mocks base method.

func (*MockPersistentStorageInterface) Open

func (m *MockPersistentStorageInterface) Open(workerId int, jsonconf json.RawMessage) error

Open mocks base method.

func (*MockPersistentStorageInterface) UpgradeDb

func (m *MockPersistentStorageInterface) UpgradeDb(jsonconf json.RawMessage) error

UpgradeDb mocks base method.

func (*MockPersistentStorageInterface) UseMediaHandler

func (m *MockPersistentStorageInterface) UseMediaHandler(name, config string) error

UseMediaHandler mocks base method.

type MockPersistentStorageInterfaceMockRecorder

type MockPersistentStorageInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockPersistentStorageInterfaceMockRecorder is the mock recorder for MockPersistentStorageInterface.

func (*MockPersistentStorageInterfaceMockRecorder) Close

Close indicates an expected call of Close.

func (*MockPersistentStorageInterfaceMockRecorder) DbStats

DbStats indicates an expected call of DbStats.

func (*MockPersistentStorageInterfaceMockRecorder) GetAdapter

GetAdapter indicates an expected call of GetAdapter.

func (*MockPersistentStorageInterfaceMockRecorder) GetAdapterName

GetAdapterName indicates an expected call of GetAdapterName.

func (*MockPersistentStorageInterfaceMockRecorder) GetAdapterVersion

func (mr *MockPersistentStorageInterfaceMockRecorder) GetAdapterVersion() *gomock.Call

GetAdapterVersion indicates an expected call of GetAdapterVersion.

func (*MockPersistentStorageInterfaceMockRecorder) GetAuthHandler

func (mr *MockPersistentStorageInterfaceMockRecorder) GetAuthHandler(name interface{}) *gomock.Call

GetAuthHandler indicates an expected call of GetAuthHandler.

func (*MockPersistentStorageInterfaceMockRecorder) GetAuthNames

GetAuthNames indicates an expected call of GetAuthNames.

func (*MockPersistentStorageInterfaceMockRecorder) GetDbVersion

GetDbVersion indicates an expected call of GetDbVersion.

func (*MockPersistentStorageInterfaceMockRecorder) GetLogicalAuthHandler

func (mr *MockPersistentStorageInterfaceMockRecorder) GetLogicalAuthHandler(name interface{}) *gomock.Call

GetLogicalAuthHandler indicates an expected call of GetLogicalAuthHandler.

func (*MockPersistentStorageInterfaceMockRecorder) GetMediaHandler

GetMediaHandler indicates an expected call of GetMediaHandler.

func (*MockPersistentStorageInterfaceMockRecorder) GetUid

GetUid indicates an expected call of GetUid.

func (*MockPersistentStorageInterfaceMockRecorder) GetUidString

GetUidString indicates an expected call of GetUidString.

func (*MockPersistentStorageInterfaceMockRecorder) GetValidator

func (mr *MockPersistentStorageInterfaceMockRecorder) GetValidator(name interface{}) *gomock.Call

GetValidator indicates an expected call of GetValidator.

func (*MockPersistentStorageInterfaceMockRecorder) InitDb

func (mr *MockPersistentStorageInterfaceMockRecorder) InitDb(jsonconf, reset interface{}) *gomock.Call

InitDb indicates an expected call of InitDb.

func (*MockPersistentStorageInterfaceMockRecorder) IsOpen

IsOpen indicates an expected call of IsOpen.

func (*MockPersistentStorageInterfaceMockRecorder) Open

func (mr *MockPersistentStorageInterfaceMockRecorder) Open(workerId, jsonconf interface{}) *gomock.Call

Open indicates an expected call of Open.

func (*MockPersistentStorageInterfaceMockRecorder) UpgradeDb

func (mr *MockPersistentStorageInterfaceMockRecorder) UpgradeDb(jsonconf interface{}) *gomock.Call

UpgradeDb indicates an expected call of UpgradeDb.

func (*MockPersistentStorageInterfaceMockRecorder) UseMediaHandler

func (mr *MockPersistentStorageInterfaceMockRecorder) UseMediaHandler(name, config interface{}) *gomock.Call

UseMediaHandler indicates an expected call of UseMediaHandler.

type MockSubsPersistenceInterface

type MockSubsPersistenceInterface struct {
	// contains filtered or unexported fields
}

MockSubsPersistenceInterface is a mock of SubsPersistenceInterface interface.

func NewMockSubsPersistenceInterface

func NewMockSubsPersistenceInterface(ctrl *gomock.Controller) *MockSubsPersistenceInterface

NewMockSubsPersistenceInterface creates a new mock instance.

func (*MockSubsPersistenceInterface) Create

Create mocks base method.

func (*MockSubsPersistenceInterface) Delete

func (m *MockSubsPersistenceInterface) Delete(topic string, user types.Uid) error

Delete mocks base method.

func (*MockSubsPersistenceInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSubsPersistenceInterface) Get

func (m *MockSubsPersistenceInterface) Get(topic string, user types.Uid, keepDeleted bool) (*types.Subscription, error)

Get mocks base method.

func (*MockSubsPersistenceInterface) Update

func (m *MockSubsPersistenceInterface) Update(topic string, user types.Uid, update map[string]interface{}) error

Update mocks base method.

type MockSubsPersistenceInterfaceMockRecorder

type MockSubsPersistenceInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockSubsPersistenceInterfaceMockRecorder is the mock recorder for MockSubsPersistenceInterface.

func (*MockSubsPersistenceInterfaceMockRecorder) Create

func (mr *MockSubsPersistenceInterfaceMockRecorder) Create(subs ...interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockSubsPersistenceInterfaceMockRecorder) Delete

func (mr *MockSubsPersistenceInterfaceMockRecorder) Delete(topic, user interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSubsPersistenceInterfaceMockRecorder) Get

func (mr *MockSubsPersistenceInterfaceMockRecorder) Get(topic, user, keepDeleted interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockSubsPersistenceInterfaceMockRecorder) Update

func (mr *MockSubsPersistenceInterfaceMockRecorder) Update(topic, user, update interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockTopicsPersistenceInterface

type MockTopicsPersistenceInterface struct {
	// contains filtered or unexported fields
}

MockTopicsPersistenceInterface is a mock of TopicsPersistenceInterface interface.

func NewMockTopicsPersistenceInterface

func NewMockTopicsPersistenceInterface(ctrl *gomock.Controller) *MockTopicsPersistenceInterface

NewMockTopicsPersistenceInterface creates a new mock instance.

func (*MockTopicsPersistenceInterface) Create

func (m *MockTopicsPersistenceInterface) Create(topic *types.Topic, owner types.Uid, private interface{}) error

Create mocks base method.

func (*MockTopicsPersistenceInterface) CreateP2P

func (m *MockTopicsPersistenceInterface) CreateP2P(initiator, invited *types.Subscription) error

CreateP2P mocks base method.

func (*MockTopicsPersistenceInterface) Delete

func (m *MockTopicsPersistenceInterface) Delete(topic string, isChan, hard bool) error

Delete mocks base method.

func (*MockTopicsPersistenceInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTopicsPersistenceInterface) Get

Get mocks base method.

func (*MockTopicsPersistenceInterface) GetSubs

GetSubs mocks base method.

func (*MockTopicsPersistenceInterface) GetSubsAny

func (m *MockTopicsPersistenceInterface) GetSubsAny(topic string, opts *types.QueryOpt) ([]types.Subscription, error)

GetSubsAny mocks base method.

func (*MockTopicsPersistenceInterface) GetUsers

GetUsers mocks base method.

func (*MockTopicsPersistenceInterface) GetUsersAny

func (m *MockTopicsPersistenceInterface) GetUsersAny(topic string, opts *types.QueryOpt) ([]types.Subscription, error)

GetUsersAny mocks base method.

func (*MockTopicsPersistenceInterface) OwnerChange

func (m *MockTopicsPersistenceInterface) OwnerChange(topic string, newOwner types.Uid) error

OwnerChange mocks base method.

func (*MockTopicsPersistenceInterface) Update

func (m *MockTopicsPersistenceInterface) Update(topic string, update map[string]interface{}) error

Update mocks base method.

type MockTopicsPersistenceInterfaceMockRecorder

type MockTopicsPersistenceInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockTopicsPersistenceInterfaceMockRecorder is the mock recorder for MockTopicsPersistenceInterface.

func (*MockTopicsPersistenceInterfaceMockRecorder) Create

func (mr *MockTopicsPersistenceInterfaceMockRecorder) Create(topic, owner, private interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockTopicsPersistenceInterfaceMockRecorder) CreateP2P

func (mr *MockTopicsPersistenceInterfaceMockRecorder) CreateP2P(initiator, invited interface{}) *gomock.Call

CreateP2P indicates an expected call of CreateP2P.

func (*MockTopicsPersistenceInterfaceMockRecorder) Delete

func (mr *MockTopicsPersistenceInterfaceMockRecorder) Delete(topic, isChan, hard interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTopicsPersistenceInterfaceMockRecorder) Get

func (mr *MockTopicsPersistenceInterfaceMockRecorder) Get(topic interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockTopicsPersistenceInterfaceMockRecorder) GetSubs

func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetSubs(topic, opts interface{}) *gomock.Call

GetSubs indicates an expected call of GetSubs.

func (*MockTopicsPersistenceInterfaceMockRecorder) GetSubsAny

func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetSubsAny(topic, opts interface{}) *gomock.Call

GetSubsAny indicates an expected call of GetSubsAny.

func (*MockTopicsPersistenceInterfaceMockRecorder) GetUsers

func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetUsers(topic, opts interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers.

func (*MockTopicsPersistenceInterfaceMockRecorder) GetUsersAny

func (mr *MockTopicsPersistenceInterfaceMockRecorder) GetUsersAny(topic, opts interface{}) *gomock.Call

GetUsersAny indicates an expected call of GetUsersAny.

func (*MockTopicsPersistenceInterfaceMockRecorder) OwnerChange

func (mr *MockTopicsPersistenceInterfaceMockRecorder) OwnerChange(topic, newOwner interface{}) *gomock.Call

OwnerChange indicates an expected call of OwnerChange.

func (*MockTopicsPersistenceInterfaceMockRecorder) Update

func (mr *MockTopicsPersistenceInterfaceMockRecorder) Update(topic, update interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockUsersPersistenceInterface

type MockUsersPersistenceInterface struct {
	// contains filtered or unexported fields
}

MockUsersPersistenceInterface is a mock of UsersPersistenceInterface interface.

func NewMockUsersPersistenceInterface

func NewMockUsersPersistenceInterface(ctrl *gomock.Controller) *MockUsersPersistenceInterface

NewMockUsersPersistenceInterface creates a new mock instance.

func (*MockUsersPersistenceInterface) AddAuthRecord

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

func (m *MockUsersPersistenceInterface) ConfirmCred(id types.Uid, method string) error

ConfirmCred mocks base method.

func (*MockUsersPersistenceInterface) Create

func (m *MockUsersPersistenceInterface) Create(user *types.User, private interface{}) (*types.User, error)

Create mocks base method.

func (*MockUsersPersistenceInterface) DelAuthRecords

func (m *MockUsersPersistenceInterface) DelAuthRecords(uid types.Uid, scheme string) error

DelAuthRecords mocks base method.

func (*MockUsersPersistenceInterface) DelCred

func (m *MockUsersPersistenceInterface) DelCred(id types.Uid, method, value string) error

DelCred mocks base method.

func (*MockUsersPersistenceInterface) Delete

func (m *MockUsersPersistenceInterface) Delete(id types.Uid, hard bool) error

Delete mocks base method.

func (*MockUsersPersistenceInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUsersPersistenceInterface) FailCred

func (m *MockUsersPersistenceInterface) FailCred(id types.Uid, method string) error

FailCred mocks base method.

func (*MockUsersPersistenceInterface) FindSubs

func (m *MockUsersPersistenceInterface) FindSubs(id types.Uid, required [][]string, optional []string) ([]types.Subscription, error)

FindSubs mocks base method.

func (*MockUsersPersistenceInterface) Get

Get mocks base method.

func (*MockUsersPersistenceInterface) GetActiveCred

func (m *MockUsersPersistenceInterface) GetActiveCred(id types.Uid, method string) (*types.Credential, error)

GetActiveCred mocks base method.

func (*MockUsersPersistenceInterface) GetAll

func (m *MockUsersPersistenceInterface) GetAll(uid ...types.Uid) ([]types.User, error)

GetAll mocks base method.

func (*MockUsersPersistenceInterface) GetAllCreds

func (m *MockUsersPersistenceInterface) GetAllCreds(id types.Uid, method string, validatedOnly bool) ([]types.Credential, error)

GetAllCreds mocks base method.

func (*MockUsersPersistenceInterface) GetAuthRecord

func (m *MockUsersPersistenceInterface) GetAuthRecord(user types.Uid, scheme string) (string, auth.Level, []byte, time.Time, error)

GetAuthRecord mocks base method.

func (*MockUsersPersistenceInterface) GetAuthUniqueRecord

func (m *MockUsersPersistenceInterface) GetAuthUniqueRecord(scheme, unique string) (types.Uid, auth.Level, []byte, time.Time, error)

GetAuthUniqueRecord mocks base method.

func (*MockUsersPersistenceInterface) GetByCred

func (m *MockUsersPersistenceInterface) GetByCred(method, value string) (types.Uid, error)

GetByCred mocks base method.

func (*MockUsersPersistenceInterface) GetChannels

func (m *MockUsersPersistenceInterface) GetChannels(id types.Uid) ([]string, error)

GetChannels mocks base method.

func (*MockUsersPersistenceInterface) GetOwnTopics

func (m *MockUsersPersistenceInterface) GetOwnTopics(id types.Uid) ([]string, error)

GetOwnTopics mocks base method.

func (*MockUsersPersistenceInterface) GetSubs

GetSubs mocks base method.

func (*MockUsersPersistenceInterface) GetTopics

GetTopics mocks base method.

func (*MockUsersPersistenceInterface) GetTopicsAny

func (m *MockUsersPersistenceInterface) GetTopicsAny(id types.Uid, opts *types.QueryOpt) ([]types.Subscription, error)

GetTopicsAny mocks base method.

func (*MockUsersPersistenceInterface) GetUnreadCount

func (m *MockUsersPersistenceInterface) GetUnreadCount(ids ...types.Uid) (map[types.Uid]int, error)

GetUnreadCount mocks base method.

func (*MockUsersPersistenceInterface) Update

func (m *MockUsersPersistenceInterface) Update(uid types.Uid, update map[string]interface{}) error

Update mocks base method.

func (*MockUsersPersistenceInterface) UpdateAuthRecord

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

func (m *MockUsersPersistenceInterface) UpdateLastSeen(uid types.Uid, userAgent string, when time.Time) error

UpdateLastSeen mocks base method.

func (*MockUsersPersistenceInterface) UpdateState

func (m *MockUsersPersistenceInterface) UpdateState(uid types.Uid, state types.ObjState) error

UpdateState mocks base method.

func (*MockUsersPersistenceInterface) UpdateTags

func (m *MockUsersPersistenceInterface) UpdateTags(uid types.Uid, add, remove, reset []string) ([]string, error)

UpdateTags mocks base method.

func (*MockUsersPersistenceInterface) UpsertCred

func (m *MockUsersPersistenceInterface) UpsertCred(cred *types.Credential) (bool, error)

UpsertCred mocks base method.

type MockUsersPersistenceInterfaceMockRecorder

type MockUsersPersistenceInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockUsersPersistenceInterfaceMockRecorder is the mock recorder for MockUsersPersistenceInterface.

func (*MockUsersPersistenceInterfaceMockRecorder) AddAuthRecord

func (mr *MockUsersPersistenceInterfaceMockRecorder) AddAuthRecord(uid, authLvl, scheme, unique, secret, expires interface{}) *gomock.Call

AddAuthRecord indicates an expected call of AddAuthRecord.

func (*MockUsersPersistenceInterfaceMockRecorder) ConfirmCred

func (mr *MockUsersPersistenceInterfaceMockRecorder) ConfirmCred(id, method interface{}) *gomock.Call

ConfirmCred indicates an expected call of ConfirmCred.

func (*MockUsersPersistenceInterfaceMockRecorder) Create

func (mr *MockUsersPersistenceInterfaceMockRecorder) Create(user, private interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUsersPersistenceInterfaceMockRecorder) DelAuthRecords

func (mr *MockUsersPersistenceInterfaceMockRecorder) DelAuthRecords(uid, scheme interface{}) *gomock.Call

DelAuthRecords indicates an expected call of DelAuthRecords.

func (*MockUsersPersistenceInterfaceMockRecorder) DelCred

func (mr *MockUsersPersistenceInterfaceMockRecorder) DelCred(id, method, value interface{}) *gomock.Call

DelCred indicates an expected call of DelCred.

func (*MockUsersPersistenceInterfaceMockRecorder) Delete

func (mr *MockUsersPersistenceInterfaceMockRecorder) Delete(id, hard interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUsersPersistenceInterfaceMockRecorder) FailCred

func (mr *MockUsersPersistenceInterfaceMockRecorder) FailCred(id, method interface{}) *gomock.Call

FailCred indicates an expected call of FailCred.

func (*MockUsersPersistenceInterfaceMockRecorder) FindSubs

func (mr *MockUsersPersistenceInterfaceMockRecorder) FindSubs(id, required, optional interface{}) *gomock.Call

FindSubs indicates an expected call of FindSubs.

func (*MockUsersPersistenceInterfaceMockRecorder) Get

func (mr *MockUsersPersistenceInterfaceMockRecorder) Get(uid interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockUsersPersistenceInterfaceMockRecorder) GetActiveCred

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetActiveCred(id, method interface{}) *gomock.Call

GetActiveCred indicates an expected call of GetActiveCred.

func (*MockUsersPersistenceInterfaceMockRecorder) GetAll

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAll(uid ...interface{}) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockUsersPersistenceInterfaceMockRecorder) GetAllCreds

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAllCreds(id, method, validatedOnly interface{}) *gomock.Call

GetAllCreds indicates an expected call of GetAllCreds.

func (*MockUsersPersistenceInterfaceMockRecorder) GetAuthRecord

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAuthRecord(user, scheme interface{}) *gomock.Call

GetAuthRecord indicates an expected call of GetAuthRecord.

func (*MockUsersPersistenceInterfaceMockRecorder) GetAuthUniqueRecord

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetAuthUniqueRecord(scheme, unique interface{}) *gomock.Call

GetAuthUniqueRecord indicates an expected call of GetAuthUniqueRecord.

func (*MockUsersPersistenceInterfaceMockRecorder) GetByCred

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetByCred(method, value interface{}) *gomock.Call

GetByCred indicates an expected call of GetByCred.

func (*MockUsersPersistenceInterfaceMockRecorder) GetChannels

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetChannels(id interface{}) *gomock.Call

GetChannels indicates an expected call of GetChannels.

func (*MockUsersPersistenceInterfaceMockRecorder) GetOwnTopics

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetOwnTopics(id interface{}) *gomock.Call

GetOwnTopics indicates an expected call of GetOwnTopics.

func (*MockUsersPersistenceInterfaceMockRecorder) GetSubs

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetSubs(id interface{}) *gomock.Call

GetSubs indicates an expected call of GetSubs.

func (*MockUsersPersistenceInterfaceMockRecorder) GetTopics

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetTopics(id, opts interface{}) *gomock.Call

GetTopics indicates an expected call of GetTopics.

func (*MockUsersPersistenceInterfaceMockRecorder) GetTopicsAny

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetTopicsAny(id, opts interface{}) *gomock.Call

GetTopicsAny indicates an expected call of GetTopicsAny.

func (*MockUsersPersistenceInterfaceMockRecorder) GetUnreadCount

func (mr *MockUsersPersistenceInterfaceMockRecorder) GetUnreadCount(ids ...interface{}) *gomock.Call

GetUnreadCount indicates an expected call of GetUnreadCount.

func (*MockUsersPersistenceInterfaceMockRecorder) Update

func (mr *MockUsersPersistenceInterfaceMockRecorder) Update(uid, update interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockUsersPersistenceInterfaceMockRecorder) UpdateAuthRecord

func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateAuthRecord(uid, authLvl, scheme, unique, secret, expires interface{}) *gomock.Call

UpdateAuthRecord indicates an expected call of UpdateAuthRecord.

func (*MockUsersPersistenceInterfaceMockRecorder) UpdateLastSeen

func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateLastSeen(uid, userAgent, when interface{}) *gomock.Call

UpdateLastSeen indicates an expected call of UpdateLastSeen.

func (*MockUsersPersistenceInterfaceMockRecorder) UpdateState

func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateState(uid, state interface{}) *gomock.Call

UpdateState indicates an expected call of UpdateState.

func (*MockUsersPersistenceInterfaceMockRecorder) UpdateTags

func (mr *MockUsersPersistenceInterfaceMockRecorder) UpdateTags(uid, add, remove, reset interface{}) *gomock.Call

UpdateTags indicates an expected call of UpdateTags.

func (*MockUsersPersistenceInterfaceMockRecorder) UpsertCred

func (mr *MockUsersPersistenceInterfaceMockRecorder) UpsertCred(cred interface{}) *gomock.Call

UpsertCred indicates an expected call of UpsertCred.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL