Documentation ¶
Index ¶
- type AuthenticationUsecaseInterface
- func (_m *AuthenticationUsecaseInterface) EXPECT() *AuthenticationUsecaseInterface_Expecter
- func (_m *AuthenticationUsecaseInterface) GetUserInfo(ctx context.Context, bearerToken string) (*domain.AppUserModel, error)
- func (_m *AuthenticationUsecaseInterface) RefreshToken(ctx context.Context, refreshToken string) (string, error)
- type AuthenticationUsecaseInterface_Expecter
- func (_e *AuthenticationUsecaseInterface_Expecter) GetUserInfo(ctx interface{}, bearerToken interface{}) *AuthenticationUsecaseInterface_GetUserInfo_Call
- func (_e *AuthenticationUsecaseInterface_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *AuthenticationUsecaseInterface_RefreshToken_Call
- type AuthenticationUsecaseInterface_GetUserInfo_Call
- func (_c *AuthenticationUsecaseInterface_GetUserInfo_Call) Return(_a0 *domain.AppUserModel, _a1 error) *AuthenticationUsecaseInterface_GetUserInfo_Call
- func (_c *AuthenticationUsecaseInterface_GetUserInfo_Call) Run(run func(ctx context.Context, bearerToken string)) *AuthenticationUsecaseInterface_GetUserInfo_Call
- func (_c *AuthenticationUsecaseInterface_GetUserInfo_Call) RunAndReturn(run func(context.Context, string) (*domain.AppUserModel, error)) *AuthenticationUsecaseInterface_GetUserInfo_Call
- type AuthenticationUsecaseInterface_RefreshToken_Call
- func (_c *AuthenticationUsecaseInterface_RefreshToken_Call) Return(_a0 string, _a1 error) *AuthenticationUsecaseInterface_RefreshToken_Call
- func (_c *AuthenticationUsecaseInterface_RefreshToken_Call) Run(run func(ctx context.Context, refreshToken string)) *AuthenticationUsecaseInterface_RefreshToken_Call
- func (_c *AuthenticationUsecaseInterface_RefreshToken_Call) RunAndReturn(run func(context.Context, string) (string, error)) *AuthenticationUsecaseInterface_RefreshToken_Call
- type GoogleUserUsecaseInterface
- func (_m *GoogleUserUsecaseInterface) Authorize(ctx context.Context, state string, code string, organizationName string) (*domain.AuthTokenSet, error)
- func (_m *GoogleUserUsecaseInterface) EXPECT() *GoogleUserUsecaseInterface_Expecter
- func (_m *GoogleUserUsecaseInterface) GenerateState(_a0 context.Context) (string, error)
- type GoogleUserUsecaseInterface_Authorize_Call
- func (_c *GoogleUserUsecaseInterface_Authorize_Call) Return(_a0 *domain.AuthTokenSet, _a1 error) *GoogleUserUsecaseInterface_Authorize_Call
- func (_c *GoogleUserUsecaseInterface_Authorize_Call) Run(...) *GoogleUserUsecaseInterface_Authorize_Call
- func (_c *GoogleUserUsecaseInterface_Authorize_Call) RunAndReturn(...) *GoogleUserUsecaseInterface_Authorize_Call
- type GoogleUserUsecaseInterface_Expecter
- type GoogleUserUsecaseInterface_GenerateState_Call
- func (_c *GoogleUserUsecaseInterface_GenerateState_Call) Return(_a0 string, _a1 error) *GoogleUserUsecaseInterface_GenerateState_Call
- func (_c *GoogleUserUsecaseInterface_GenerateState_Call) Run(run func(_a0 context.Context)) *GoogleUserUsecaseInterface_GenerateState_Call
- func (_c *GoogleUserUsecaseInterface_GenerateState_Call) RunAndReturn(run func(context.Context) (string, error)) *GoogleUserUsecaseInterface_GenerateState_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationUsecaseInterface ¶
AuthenticationUsecaseInterface is an autogenerated mock type for the AuthenticationUsecaseInterface type
func NewAuthenticationUsecaseInterface ¶
func NewAuthenticationUsecaseInterface(t interface { mock.TestingT Cleanup(func()) }) *AuthenticationUsecaseInterface
NewAuthenticationUsecaseInterface creates a new instance of AuthenticationUsecaseInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AuthenticationUsecaseInterface) EXPECT ¶
func (_m *AuthenticationUsecaseInterface) EXPECT() *AuthenticationUsecaseInterface_Expecter
func (*AuthenticationUsecaseInterface) GetUserInfo ¶
func (_m *AuthenticationUsecaseInterface) GetUserInfo(ctx context.Context, bearerToken string) (*domain.AppUserModel, error)
GetUserInfo provides a mock function with given fields: ctx, bearerToken
func (*AuthenticationUsecaseInterface) RefreshToken ¶
func (_m *AuthenticationUsecaseInterface) RefreshToken(ctx context.Context, refreshToken string) (string, error)
RefreshToken provides a mock function with given fields: ctx, refreshToken
type AuthenticationUsecaseInterface_Expecter ¶
type AuthenticationUsecaseInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthenticationUsecaseInterface_Expecter) GetUserInfo ¶
func (_e *AuthenticationUsecaseInterface_Expecter) GetUserInfo(ctx interface{}, bearerToken interface{}) *AuthenticationUsecaseInterface_GetUserInfo_Call
GetUserInfo is a helper method to define mock.On call
- ctx context.Context
- bearerToken string
func (*AuthenticationUsecaseInterface_Expecter) RefreshToken ¶
func (_e *AuthenticationUsecaseInterface_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *AuthenticationUsecaseInterface_RefreshToken_Call
RefreshToken is a helper method to define mock.On call
- ctx context.Context
- refreshToken string
type AuthenticationUsecaseInterface_GetUserInfo_Call ¶
AuthenticationUsecaseInterface_GetUserInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserInfo'
func (*AuthenticationUsecaseInterface_GetUserInfo_Call) Return ¶
func (_c *AuthenticationUsecaseInterface_GetUserInfo_Call) Return(_a0 *domain.AppUserModel, _a1 error) *AuthenticationUsecaseInterface_GetUserInfo_Call
func (*AuthenticationUsecaseInterface_GetUserInfo_Call) Run ¶
func (_c *AuthenticationUsecaseInterface_GetUserInfo_Call) Run(run func(ctx context.Context, bearerToken string)) *AuthenticationUsecaseInterface_GetUserInfo_Call
func (*AuthenticationUsecaseInterface_GetUserInfo_Call) RunAndReturn ¶
func (_c *AuthenticationUsecaseInterface_GetUserInfo_Call) RunAndReturn(run func(context.Context, string) (*domain.AppUserModel, error)) *AuthenticationUsecaseInterface_GetUserInfo_Call
type AuthenticationUsecaseInterface_RefreshToken_Call ¶
AuthenticationUsecaseInterface_RefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshToken'
func (*AuthenticationUsecaseInterface_RefreshToken_Call) Return ¶
func (_c *AuthenticationUsecaseInterface_RefreshToken_Call) Return(_a0 string, _a1 error) *AuthenticationUsecaseInterface_RefreshToken_Call
func (*AuthenticationUsecaseInterface_RefreshToken_Call) Run ¶
func (_c *AuthenticationUsecaseInterface_RefreshToken_Call) Run(run func(ctx context.Context, refreshToken string)) *AuthenticationUsecaseInterface_RefreshToken_Call
func (*AuthenticationUsecaseInterface_RefreshToken_Call) RunAndReturn ¶
func (_c *AuthenticationUsecaseInterface_RefreshToken_Call) RunAndReturn(run func(context.Context, string) (string, error)) *AuthenticationUsecaseInterface_RefreshToken_Call
type GoogleUserUsecaseInterface ¶
GoogleUserUsecaseInterface is an autogenerated mock type for the GoogleUserUsecaseInterface type
func NewGoogleUserUsecaseInterface ¶
func NewGoogleUserUsecaseInterface(t interface { mock.TestingT Cleanup(func()) }) *GoogleUserUsecaseInterface
NewGoogleUserUsecaseInterface creates a new instance of GoogleUserUsecaseInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*GoogleUserUsecaseInterface) Authorize ¶
func (_m *GoogleUserUsecaseInterface) Authorize(ctx context.Context, state string, code string, organizationName string) (*domain.AuthTokenSet, error)
Authorize provides a mock function with given fields: ctx, state, code, organizationName
func (*GoogleUserUsecaseInterface) EXPECT ¶
func (_m *GoogleUserUsecaseInterface) EXPECT() *GoogleUserUsecaseInterface_Expecter
func (*GoogleUserUsecaseInterface) GenerateState ¶
func (_m *GoogleUserUsecaseInterface) GenerateState(_a0 context.Context) (string, error)
GenerateState provides a mock function with given fields: _a0
type GoogleUserUsecaseInterface_Authorize_Call ¶
GoogleUserUsecaseInterface_Authorize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authorize'
func (*GoogleUserUsecaseInterface_Authorize_Call) Return ¶
func (_c *GoogleUserUsecaseInterface_Authorize_Call) Return(_a0 *domain.AuthTokenSet, _a1 error) *GoogleUserUsecaseInterface_Authorize_Call
func (*GoogleUserUsecaseInterface_Authorize_Call) Run ¶
func (_c *GoogleUserUsecaseInterface_Authorize_Call) Run(run func(ctx context.Context, state string, code string, organizationName string)) *GoogleUserUsecaseInterface_Authorize_Call
func (*GoogleUserUsecaseInterface_Authorize_Call) RunAndReturn ¶
func (_c *GoogleUserUsecaseInterface_Authorize_Call) RunAndReturn(run func(context.Context, string, string, string) (*domain.AuthTokenSet, error)) *GoogleUserUsecaseInterface_Authorize_Call
type GoogleUserUsecaseInterface_Expecter ¶
type GoogleUserUsecaseInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*GoogleUserUsecaseInterface_Expecter) Authorize ¶
func (_e *GoogleUserUsecaseInterface_Expecter) Authorize(ctx interface{}, state interface{}, code interface{}, organizationName interface{}) *GoogleUserUsecaseInterface_Authorize_Call
Authorize is a helper method to define mock.On call
- ctx context.Context
- state string
- code string
- organizationName string
func (*GoogleUserUsecaseInterface_Expecter) GenerateState ¶
func (_e *GoogleUserUsecaseInterface_Expecter) GenerateState(_a0 interface{}) *GoogleUserUsecaseInterface_GenerateState_Call
GenerateState is a helper method to define mock.On call
- _a0 context.Context
type GoogleUserUsecaseInterface_GenerateState_Call ¶
GoogleUserUsecaseInterface_GenerateState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateState'
func (*GoogleUserUsecaseInterface_GenerateState_Call) Return ¶
func (_c *GoogleUserUsecaseInterface_GenerateState_Call) Return(_a0 string, _a1 error) *GoogleUserUsecaseInterface_GenerateState_Call
func (*GoogleUserUsecaseInterface_GenerateState_Call) Run ¶
func (_c *GoogleUserUsecaseInterface_GenerateState_Call) Run(run func(_a0 context.Context)) *GoogleUserUsecaseInterface_GenerateState_Call
func (*GoogleUserUsecaseInterface_GenerateState_Call) RunAndReturn ¶
func (_c *GoogleUserUsecaseInterface_GenerateState_Call) RunAndReturn(run func(context.Context) (string, error)) *GoogleUserUsecaseInterface_GenerateState_Call