Documentation ¶
Index ¶
- type AuthService
- type JWTService
- func (_m *JWTService) CreateTokens(ctx context.Context, userID string) (entity.Tokens, error)
- func (_m *JWTService) ParseAccessToken(_a0 string) (*token.JWTCustomClaims, error)
- func (_m *JWTService) ParseRefreshToken(_a0 string) (*token.JWTCustomClaims, error)
- func (_m *JWTService) ProlongTokens(ctx context.Context, userID string)
- func (_m *JWTService) ValidateAccessToken(ctx context.Context, claims *token.JWTCustomClaims) error
- func (_m *JWTService) ValidateRefreshToken(ctx context.Context, claims *token.JWTCustomClaims) error
- type UsersService
- func (_m *UsersService) ChangeEmail(ctx context.Context, schema service.ChangeEmailSchema) error
- func (_m *UsersService) ChangePassword(ctx context.Context, schema service.ChangePasswordSchema) error
- func (_m *UsersService) GetByID(ctx context.Context, userID primitive.ObjectID) (entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
AuthService is an autogenerated mock type for the AuthService type
func NewAuthService ¶
func NewAuthService(t mockConstructorTestingTNewAuthService) *AuthService
NewAuthService creates a new instance of AuthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AuthService) SignIn ¶
func (_m *AuthService) SignIn(ctx context.Context, schema service.UserSignInSchema) (entity.Tokens, error)
SignIn provides a mock function with given fields: ctx, schema
func (*AuthService) SignUp ¶
func (_m *AuthService) SignUp(ctx context.Context, schema service.UserSignUpSchema) error
SignUp provides a mock function with given fields: ctx, schema
type JWTService ¶
JWTService is an autogenerated mock type for the JWTService type
func NewJWTService ¶
func NewJWTService(t mockConstructorTestingTNewJWTService) *JWTService
NewJWTService creates a new instance of JWTService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*JWTService) CreateTokens ¶
CreateTokens provides a mock function with given fields: ctx, userID
func (*JWTService) ParseAccessToken ¶
func (_m *JWTService) ParseAccessToken(_a0 string) (*token.JWTCustomClaims, error)
ParseAccessToken provides a mock function with given fields: _a0
func (*JWTService) ParseRefreshToken ¶
func (_m *JWTService) ParseRefreshToken(_a0 string) (*token.JWTCustomClaims, error)
ParseRefreshToken provides a mock function with given fields: _a0
func (*JWTService) ProlongTokens ¶
func (_m *JWTService) ProlongTokens(ctx context.Context, userID string)
ProlongTokens provides a mock function with given fields: ctx, userID
func (*JWTService) ValidateAccessToken ¶
func (_m *JWTService) ValidateAccessToken(ctx context.Context, claims *token.JWTCustomClaims) error
ValidateAccessToken provides a mock function with given fields: ctx, claims
func (*JWTService) ValidateRefreshToken ¶
func (_m *JWTService) ValidateRefreshToken(ctx context.Context, claims *token.JWTCustomClaims) error
ValidateRefreshToken provides a mock function with given fields: ctx, claims
type UsersService ¶
UsersService is an autogenerated mock type for the UsersService type
func NewUsersService ¶
func NewUsersService(t mockConstructorTestingTNewUsersService) *UsersService
NewUsersService creates a new instance of UsersService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UsersService) ChangeEmail ¶
func (_m *UsersService) ChangeEmail(ctx context.Context, schema service.ChangeEmailSchema) error
ChangeEmail provides a mock function with given fields: ctx, schema
func (*UsersService) ChangePassword ¶
func (_m *UsersService) ChangePassword(ctx context.Context, schema service.ChangePasswordSchema) error
ChangePassword provides a mock function with given fields: ctx, schema