handler

package
v0.0.0-...-46fca04 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT, MIT Imports: 15 Imported by: 0

Documentation

Overview

Package handler is a generated GoMock package.

Index

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) HandlerAuthPing

func (h *Handler) HandlerAuthPing(r gin.IRoutes) gin.IRoutes

func (*Handler) HandlerAuthenticateGoogleRedirectOrigin

func (h *Handler) HandlerAuthenticateGoogleRedirectOrigin(r gin.IRoutes) gin.IRoutes

func (*Handler) HandlerGoogleLogin

func (h *Handler) HandlerGoogleLogin(r gin.IRoutes) gin.IRoutes

func (*Handler) HandlerGoogleSignup

func (h *Handler) HandlerGoogleSignup(r gin.IRoutes) gin.IRoutes

func (*Handler) HandlerPing

func (h *Handler) HandlerPing(r gin.IRoutes) gin.IRoutes

func (*Handler) HandlerRefreshToken

func (h *Handler) HandlerRefreshToken(r gin.IRoutes) gin.IRoutes

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

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

func (*MockIAuthUseCase) GetByEmail

func (m *MockIAuthUseCase) GetByEmail(ctx context.Context, email string) (user.User, error)

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.

func (*MockIAuthUseCase) SignJWT

func (m *MockIAuthUseCase) SignJWT(ctx context.Context, usr user.User) (string, string, error)

SignJWT mocks base method.

func (*MockIAuthUseCase) Signup

func (m *MockIAuthUseCase) Signup(ctx context.Context, tag, name, email string) (user.User, error)

Signup 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.

Jump to

Keyboard shortcuts

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