Documentation ¶
Overview ¶
Package service is a generated GoMock package.
Package service is a generated GoMock package.
Index ¶
- type MockSessionsService
- func (m *MockSessionsService) EXPECT() *MockSessionsServiceMockRecorder
- func (m *MockSessionsService) IsAuthenticated(rw http.ResponseWriter, r *http.Request) bool
- func (m *MockSessionsService) Login(rw http.ResponseWriter, r *http.Request)
- func (m *MockSessionsService) Logout(rw http.ResponseWriter, r *http.Request)
- type MockSessionsServiceMockRecorder
- type MockUserService
- type MockUserServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSessionsService ¶
type MockSessionsService struct {
// contains filtered or unexported fields
}
MockSessionsService is a mock of SessionsService interface.
func NewMockSessionsService ¶
func NewMockSessionsService(ctrl *gomock.Controller) *MockSessionsService
NewMockSessionsService creates a new mock instance.
func (*MockSessionsService) EXPECT ¶
func (m *MockSessionsService) EXPECT() *MockSessionsServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSessionsService) IsAuthenticated ¶
func (m *MockSessionsService) IsAuthenticated(rw http.ResponseWriter, r *http.Request) bool
IsAuthenticated mocks base method.
func (*MockSessionsService) Login ¶
func (m *MockSessionsService) Login(rw http.ResponseWriter, r *http.Request)
Login mocks base method.
func (*MockSessionsService) Logout ¶
func (m *MockSessionsService) Logout(rw http.ResponseWriter, r *http.Request)
Logout mocks base method.
type MockSessionsServiceMockRecorder ¶
type MockSessionsServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionsServiceMockRecorder is the mock recorder for MockSessionsService.
func (*MockSessionsServiceMockRecorder) IsAuthenticated ¶
func (mr *MockSessionsServiceMockRecorder) IsAuthenticated(rw, r interface{}) *gomock.Call
IsAuthenticated indicates an expected call of IsAuthenticated.
func (*MockSessionsServiceMockRecorder) Login ¶
func (mr *MockSessionsServiceMockRecorder) Login(rw, r interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockSessionsServiceMockRecorder) Logout ¶
func (mr *MockSessionsServiceMockRecorder) Logout(rw, r interface{}) *gomock.Call
Logout indicates an expected call of Logout.
type MockUserService ¶
type MockUserService struct {
// contains filtered or unexported fields
}
MockUserService is a mock of UserService interface.
func NewMockUserService ¶
func NewMockUserService(ctrl *gomock.Controller) *MockUserService
NewMockUserService creates a new mock instance.
func (*MockUserService) CreateUser ¶
func (m *MockUserService) CreateUser(ctx context.Context, email, password string) error
CreateUser mocks base method.
func (*MockUserService) EXPECT ¶
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserService) ValidateUserPassword ¶
func (m *MockUserService) ValidateUserPassword(ctx context.Context, email, password string) error
ValidateUserPassword mocks base method.
type MockUserServiceMockRecorder ¶
type MockUserServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUserServiceMockRecorder is the mock recorder for MockUserService.
func (*MockUserServiceMockRecorder) CreateUser ¶
func (mr *MockUserServiceMockRecorder) CreateUser(ctx, email, password interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockUserServiceMockRecorder) ValidateUserPassword ¶
func (mr *MockUserServiceMockRecorder) ValidateUserPassword(ctx, email, password interface{}) *gomock.Call
ValidateUserPassword indicates an expected call of ValidateUserPassword.