Documentation ¶
Index ¶
- type JWTService
- type OTPMailer
- type RedisCache
- type RistrettoCache
- type UserRepository
- func (_m *UserRepository) ChangeActiveUser(ctx context.Context, inDom *V1Domains.UserDomain) error
- func (_m *UserRepository) GetByEmail(ctx context.Context, inDom *V1Domains.UserDomain) (V1Domains.UserDomain, error)
- func (_m *UserRepository) Store(ctx context.Context, inDom *V1Domains.UserDomain) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) GenerateToken ¶
func (_m *JWTService) GenerateToken(userId string, isAdmin bool, email string, password string) (string, error)
GenerateToken provides a mock function with given fields: userId, isAdmin, email, password
func (*JWTService) ParseToken ¶
func (_m *JWTService) ParseToken(tokenString string) (jwt.JwtCustomClaim, error)
ParseToken provides a mock function with given fields: tokenString
type OTPMailer ¶
OTPMailer is an autogenerated mock type for the OTPMailer type
func NewOTPMailer ¶
func NewOTPMailer(t mockConstructorTestingTNewOTPMailer) *OTPMailer
NewOTPMailer creates a new instance of OTPMailer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type RedisCache ¶
RedisCache is an autogenerated mock type for the RedisCache type
func NewRedisCache ¶
func NewRedisCache(t mockConstructorTestingTNewRedisCache) *RedisCache
NewRedisCache creates a new instance of RedisCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RedisCache) Del ¶
func (_m *RedisCache) Del(key string) error
Del provides a mock function with given fields: key
func (*RedisCache) Get ¶
func (_m *RedisCache) Get(key string) (string, error)
Get provides a mock function with given fields: key
func (*RedisCache) Set ¶
func (_m *RedisCache) Set(key string, value interface{}) error
Set provides a mock function with given fields: key, value
type RistrettoCache ¶
RistrettoCache is an autogenerated mock type for the RistrettoCache type
func NewRistrettoCache ¶
func NewRistrettoCache(t mockConstructorTestingTNewRistrettoCache) *RistrettoCache
NewRistrettoCache creates a new instance of RistrettoCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RistrettoCache) Del ¶
func (_m *RistrettoCache) Del(key ...string)
Del provides a mock function with given fields: key
func (*RistrettoCache) Get ¶
func (_m *RistrettoCache) Get(key string) interface{}
Get provides a mock function with given fields: key
func (*RistrettoCache) Set ¶
func (_m *RistrettoCache) Set(key string, value interface{})
Set provides a mock function with given fields: key, value
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶
func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserRepository) ChangeActiveUser ¶
func (_m *UserRepository) ChangeActiveUser(ctx context.Context, inDom *V1Domains.UserDomain) error
ChangeActiveUser provides a mock function with given fields: ctx, inDom
func (*UserRepository) GetByEmail ¶
func (_m *UserRepository) GetByEmail(ctx context.Context, inDom *V1Domains.UserDomain) (V1Domains.UserDomain, error)
GetByEmail provides a mock function with given fields: ctx, inDom
func (*UserRepository) Store ¶
func (_m *UserRepository) Store(ctx context.Context, inDom *V1Domains.UserDomain) error
Store provides a mock function with given fields: ctx, inDom