Documentation
¶
Overview ¶
Package handler is a generated GoMock package.
Index ¶
- type Dependencies
- type Handler
- func (h *Handler) HandlerAuthPing(r gin.IRoutes) gin.IRoutes
- func (h *Handler) HandlerAuthenticateGoogleRedirectOrigin(r gin.IRoutes) gin.IRoutes
- func (h *Handler) HandlerGoogleLogin(r gin.IRoutes) gin.IRoutes
- func (h *Handler) HandlerGoogleSignup(r gin.IRoutes) gin.IRoutes
- func (h *Handler) HandlerPing(r gin.IRoutes) gin.IRoutes
- func (h *Handler) HandlerRefreshToken(r gin.IRoutes) gin.IRoutes
- type MockIAuthUseCase
- func (m *MockIAuthUseCase) EXPECT() *MockIAuthUseCaseMockRecorder
- func (m *MockIAuthUseCase) GetByEmail(ctx context.Context, email string) (user.User, error)
- func (m *MockIAuthUseCase) GetGoogleProfileInfo(ctx context.Context, code string) (google.GoogleUserInfo, error)
- func (m *MockIAuthUseCase) GoogleRedirectURL(ctx context.Context, state string) string
- func (m *MockIAuthUseCase) SignJWT(ctx context.Context, usr user.User) (string, string, error)
- func (m *MockIAuthUseCase) Signup(ctx context.Context, tag, name, email string) (user.User, error)
- type MockIAuthUseCaseMockRecorder
- func (mr *MockIAuthUseCaseMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call
- func (mr *MockIAuthUseCaseMockRecorder) GetGoogleProfileInfo(ctx, code interface{}) *gomock.Call
- func (mr *MockIAuthUseCaseMockRecorder) GoogleRedirectURL(ctx, state interface{}) *gomock.Call
- func (mr *MockIAuthUseCaseMockRecorder) SignJWT(ctx, usr interface{}) *gomock.Call
- func (mr *MockIAuthUseCaseMockRecorder) Signup(ctx, tag, name, email interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependencies ¶
type Dependencies struct {
AuthUC usecases.IAuthUseCase
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(dep Dependencies) *Handler
func (*Handler) HandlerAuthenticateGoogleRedirectOrigin ¶
func (*Handler) HandlerGoogleLogin ¶
func (*Handler) HandlerGoogleSignup ¶
type MockIAuthUseCase ¶
type MockIAuthUseCase struct {
// contains filtered or unexported fields
}
MockIAuthUseCase is a mock of IAuthUseCase interface.
func NewMockIAuthUseCase ¶
func NewMockIAuthUseCase(ctrl *gomock.Controller) *MockIAuthUseCase
NewMockIAuthUseCase creates a new mock instance.
func (*MockIAuthUseCase) EXPECT ¶
func (m *MockIAuthUseCase) EXPECT() *MockIAuthUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIAuthUseCase) GetByEmail ¶
GetByEmail mocks base method.
func (*MockIAuthUseCase) GetGoogleProfileInfo ¶
func (m *MockIAuthUseCase) GetGoogleProfileInfo(ctx context.Context, code string) (google.GoogleUserInfo, error)
GetGoogleProfileInfo mocks base method.
func (*MockIAuthUseCase) GoogleRedirectURL ¶
func (m *MockIAuthUseCase) GoogleRedirectURL(ctx context.Context, state string) string
GoogleRedirectURL mocks base method.
type MockIAuthUseCaseMockRecorder ¶
type MockIAuthUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockIAuthUseCaseMockRecorder is the mock recorder for MockIAuthUseCase.
func (*MockIAuthUseCaseMockRecorder) GetByEmail ¶
func (mr *MockIAuthUseCaseMockRecorder) GetByEmail(ctx, email interface{}) *gomock.Call
GetByEmail indicates an expected call of GetByEmail.
func (*MockIAuthUseCaseMockRecorder) GetGoogleProfileInfo ¶
func (mr *MockIAuthUseCaseMockRecorder) GetGoogleProfileInfo(ctx, code interface{}) *gomock.Call
GetGoogleProfileInfo indicates an expected call of GetGoogleProfileInfo.
func (*MockIAuthUseCaseMockRecorder) GoogleRedirectURL ¶
func (mr *MockIAuthUseCaseMockRecorder) GoogleRedirectURL(ctx, state interface{}) *gomock.Call
GoogleRedirectURL indicates an expected call of GoogleRedirectURL.
func (*MockIAuthUseCaseMockRecorder) SignJWT ¶
func (mr *MockIAuthUseCaseMockRecorder) SignJWT(ctx, usr interface{}) *gomock.Call
SignJWT indicates an expected call of SignJWT.
func (*MockIAuthUseCaseMockRecorder) Signup ¶
func (mr *MockIAuthUseCaseMockRecorder) Signup(ctx, tag, name, email interface{}) *gomock.Call
Signup indicates an expected call of Signup.