Documentation ¶
Overview ¶
Package mock_model is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) EditAd(arg0 *model.AdItem) (int64, error)
- func (m *MockDB) EditUser(arg0 *model.User) (int64, error)
- func (m *MockDB) GetAd(arg0 int64) (*model.AdItem, error)
- func (m *MockDB) GetAds(arg0 *model.SearchParams) ([]*model.AdItem, error)
- func (m *MockDB) GetAdsOfUser(arg0 int64) ([]*model.AdItem, error)
- func (m *MockDB) GetUserWithEmail(arg0 string) (*model.User, error)
- func (m *MockDB) GetUserWithID(arg0 int64) (*model.User, error)
- func (m *MockDB) NewAd(arg0 *model.AdItem) (int64, error)
- func (m *MockDB) NewUser(arg0 *model.User) (int64, error)
- func (m *MockDB) RemoveAd(arg0 int64) (int64, error)
- func (m *MockDB) RemoveUser(arg0 int64) (int64, error)
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) EditAd(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) EditUser(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetAd(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetAds(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetAdsOfUser(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetUserWithEmail(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) GetUserWithID(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) NewAd(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) NewUser(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) RemoveAd(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) RemoveUser(arg0 interface{}) *gomock.Call
- type MockIM
- type MockIMMockRecorder
- type MockSM
- func (m *MockSM) CheckSession(arg0 *model.SessionID) (*model.Session, error)
- func (m *MockSM) CreateSession(arg0 *model.Session, arg1 bool) (*model.SessionID, error)
- func (m *MockSM) DeleteSession(arg0 *model.SessionID) error
- func (m *MockSM) EXPECT() *MockSMMockRecorder
- func (m *MockSM) IsConnected() bool
- func (m *MockSM) TryReconnect() error
- type MockSMMockRecorder
- func (mr *MockSMMockRecorder) CheckSession(arg0 interface{}) *gomock.Call
- func (mr *MockSMMockRecorder) CreateSession(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSMMockRecorder) DeleteSession(arg0 interface{}) *gomock.Call
- func (mr *MockSMMockRecorder) IsConnected() *gomock.Call
- func (mr *MockSMMockRecorder) TryReconnect() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDB) GetAdsOfUser ¶
GetAdsOfUser mocks base method
func (*MockDB) GetUserWithEmail ¶
GetUserWithEmail mocks base method
func (*MockDB) GetUserWithID ¶
GetUserWithID mocks base method
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB
func (*MockDBMockRecorder) EditAd ¶
func (mr *MockDBMockRecorder) EditAd(arg0 interface{}) *gomock.Call
EditAd indicates an expected call of EditAd
func (*MockDBMockRecorder) EditUser ¶
func (mr *MockDBMockRecorder) EditUser(arg0 interface{}) *gomock.Call
EditUser indicates an expected call of EditUser
func (*MockDBMockRecorder) GetAd ¶
func (mr *MockDBMockRecorder) GetAd(arg0 interface{}) *gomock.Call
GetAd indicates an expected call of GetAd
func (*MockDBMockRecorder) GetAds ¶
func (mr *MockDBMockRecorder) GetAds(arg0 interface{}) *gomock.Call
GetAds indicates an expected call of GetAds
func (*MockDBMockRecorder) GetAdsOfUser ¶
func (mr *MockDBMockRecorder) GetAdsOfUser(arg0 interface{}) *gomock.Call
GetAdsOfUser indicates an expected call of GetAdsOfUser
func (*MockDBMockRecorder) GetUserWithEmail ¶
func (mr *MockDBMockRecorder) GetUserWithEmail(arg0 interface{}) *gomock.Call
GetUserWithEmail indicates an expected call of GetUserWithEmail
func (*MockDBMockRecorder) GetUserWithID ¶
func (mr *MockDBMockRecorder) GetUserWithID(arg0 interface{}) *gomock.Call
GetUserWithID indicates an expected call of GetUserWithID
func (*MockDBMockRecorder) NewAd ¶
func (mr *MockDBMockRecorder) NewAd(arg0 interface{}) *gomock.Call
NewAd indicates an expected call of NewAd
func (*MockDBMockRecorder) NewUser ¶
func (mr *MockDBMockRecorder) NewUser(arg0 interface{}) *gomock.Call
NewUser indicates an expected call of NewUser
func (*MockDBMockRecorder) RemoveAd ¶
func (mr *MockDBMockRecorder) RemoveAd(arg0 interface{}) *gomock.Call
RemoveAd indicates an expected call of RemoveAd
func (*MockDBMockRecorder) RemoveUser ¶
func (mr *MockDBMockRecorder) RemoveUser(arg0 interface{}) *gomock.Call
RemoveUser indicates an expected call of RemoveUser
type MockIM ¶
type MockIM struct {
// contains filtered or unexported fields
}
MockIM is a mock of IM interface
func NewMockIM ¶
func NewMockIM(ctrl *gomock.Controller) *MockIM
NewMockIM creates a new mock instance
func (*MockIM) DeleteImage ¶
DeleteImage mocks base method
func (*MockIM) DownloadImage ¶
DownloadImage mocks base method
func (*MockIM) EXPECT ¶
func (m *MockIM) EXPECT() *MockIMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockIMMockRecorder ¶
type MockIMMockRecorder struct {
// contains filtered or unexported fields
}
MockIMMockRecorder is the mock recorder for MockIM
func (*MockIMMockRecorder) DeleteImage ¶
func (mr *MockIMMockRecorder) DeleteImage(arg0 interface{}) *gomock.Call
DeleteImage indicates an expected call of DeleteImage
func (*MockIMMockRecorder) DownloadImage ¶
func (mr *MockIMMockRecorder) DownloadImage(arg0 interface{}) *gomock.Call
DownloadImage indicates an expected call of DownloadImage
func (*MockIMMockRecorder) IsExist ¶
func (mr *MockIMMockRecorder) IsExist(arg0 interface{}) *gomock.Call
IsExist indicates an expected call of IsExist
func (*MockIMMockRecorder) UploadImage ¶
func (mr *MockIMMockRecorder) UploadImage(arg0, arg1 interface{}) *gomock.Call
UploadImage indicates an expected call of UploadImage
type MockSM ¶
type MockSM struct {
// contains filtered or unexported fields
}
MockSM is a mock of SM interface
func NewMockSM ¶
func NewMockSM(ctrl *gomock.Controller) *MockSM
NewMockSM creates a new mock instance
func (*MockSM) CheckSession ¶
CheckSession mocks base method
func (*MockSM) CreateSession ¶
CreateSession mocks base method
func (*MockSM) DeleteSession ¶
DeleteSession mocks base method
func (*MockSM) EXPECT ¶
func (m *MockSM) EXPECT() *MockSMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockSMMockRecorder ¶
type MockSMMockRecorder struct {
// contains filtered or unexported fields
}
MockSMMockRecorder is the mock recorder for MockSM
func (*MockSMMockRecorder) CheckSession ¶
func (mr *MockSMMockRecorder) CheckSession(arg0 interface{}) *gomock.Call
CheckSession indicates an expected call of CheckSession
func (*MockSMMockRecorder) CreateSession ¶
func (mr *MockSMMockRecorder) CreateSession(arg0, arg1 interface{}) *gomock.Call
CreateSession indicates an expected call of CreateSession
func (*MockSMMockRecorder) DeleteSession ¶
func (mr *MockSMMockRecorder) DeleteSession(arg0 interface{}) *gomock.Call
DeleteSession indicates an expected call of DeleteSession
func (*MockSMMockRecorder) IsConnected ¶
func (mr *MockSMMockRecorder) IsConnected() *gomock.Call
IsConnected indicates an expected call of IsConnected
func (*MockSMMockRecorder) TryReconnect ¶
func (mr *MockSMMockRecorder) TryReconnect() *gomock.Call
TryReconnect indicates an expected call of TryReconnect