Documentation ¶
Overview ¶
Package mock_service is a generated GoMock package.
Index ¶
- type MockAuthorization
- func (m *MockAuthorization) CreateUser(user domain.User) (int64, error)
- func (m *MockAuthorization) EXPECT() *MockAuthorizationMockRecorder
- func (m *MockAuthorization) GenerateToken(email, password string) (int64, string, error)
- func (m *MockAuthorization) GetUserName(id int64) (string, error)
- func (m *MockAuthorization) ParseToken(token string) (int64, error)
- type MockAuthorizationMockRecorder
- func (mr *MockAuthorizationMockRecorder) CreateUser(user interface{}) *gomock.Call
- func (mr *MockAuthorizationMockRecorder) GenerateToken(email, password interface{}) *gomock.Call
- func (mr *MockAuthorizationMockRecorder) GetUserName(id interface{}) *gomock.Call
- func (mr *MockAuthorizationMockRecorder) ParseToken(token interface{}) *gomock.Call
- type MockVerification
- type MockVerificationMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthorization ¶
type MockAuthorization struct {
// contains filtered or unexported fields
}
MockAuthorization is a mock of Authorization interface.
func NewMockAuthorization ¶
func NewMockAuthorization(ctrl *gomock.Controller) *MockAuthorization
NewMockAuthorization creates a new mock instance.
func (*MockAuthorization) CreateUser ¶
func (m *MockAuthorization) CreateUser(user domain.User) (int64, error)
CreateUser mocks base method.
func (*MockAuthorization) EXPECT ¶
func (m *MockAuthorization) EXPECT() *MockAuthorizationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthorization) GenerateToken ¶
func (m *MockAuthorization) GenerateToken(email, password string) (int64, string, error)
GenerateToken mocks base method.
func (*MockAuthorization) GetUserName ¶
func (m *MockAuthorization) GetUserName(id int64) (string, error)
GetUserName mocks base method.
func (*MockAuthorization) ParseToken ¶
func (m *MockAuthorization) ParseToken(token string) (int64, error)
ParseToken mocks base method.
type MockAuthorizationMockRecorder ¶
type MockAuthorizationMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationMockRecorder is the mock recorder for MockAuthorization.
func (*MockAuthorizationMockRecorder) CreateUser ¶
func (mr *MockAuthorizationMockRecorder) CreateUser(user interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockAuthorizationMockRecorder) GenerateToken ¶
func (mr *MockAuthorizationMockRecorder) GenerateToken(email, password interface{}) *gomock.Call
GenerateToken indicates an expected call of GenerateToken.
func (*MockAuthorizationMockRecorder) GetUserName ¶
func (mr *MockAuthorizationMockRecorder) GetUserName(id interface{}) *gomock.Call
GetUserName indicates an expected call of GetUserName.
func (*MockAuthorizationMockRecorder) ParseToken ¶
func (mr *MockAuthorizationMockRecorder) ParseToken(token interface{}) *gomock.Call
ParseToken indicates an expected call of ParseToken.
type MockVerification ¶
type MockVerification struct {
// contains filtered or unexported fields
}
MockVerification is a mock of Verification interface.
func NewMockVerification ¶
func NewMockVerification(ctrl *gomock.Controller) *MockVerification
NewMockVerification creates a new mock instance.
func (*MockVerification) EXPECT ¶
func (m *MockVerification) EXPECT() *MockVerificationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVerification) GetVerificationCode ¶
func (m *MockVerification) GetVerificationCode(id int64) (int, error)
GetVerificationCode mocks base method.
func (*MockVerification) SendCodeToBot ¶
func (m *MockVerification) SendCodeToBot(id int64, discord string) error
SendCodeToBot mocks base method.
type MockVerificationMockRecorder ¶
type MockVerificationMockRecorder struct {
// contains filtered or unexported fields
}
MockVerificationMockRecorder is the mock recorder for MockVerification.
func (*MockVerificationMockRecorder) GetVerificationCode ¶
func (mr *MockVerificationMockRecorder) GetVerificationCode(id interface{}) *gomock.Call
GetVerificationCode indicates an expected call of GetVerificationCode.
func (*MockVerificationMockRecorder) SendCodeToBot ¶
func (mr *MockVerificationMockRecorder) SendCodeToBot(id, discord interface{}) *gomock.Call
SendCodeToBot indicates an expected call of SendCodeToBot.