Documentation ¶
Index ¶
- type AuthHandler
- type AuthService
- func (_m *AuthService) CreateAuth(userid uint, td *domain.TokenDetails) error
- func (_m *AuthService) CreateToken(userid uint) (*domain.TokenDetails, error)
- func (_m *AuthService) DeleteAuth(givenUuid string) (int64, error)
- func (_m *AuthService) DeleteTokens(authD *domain.AccessDetails) error
- func (_m *AuthService) ExtractTokenMetadata(r *http.Request) (*domain.AccessDetails, error)
- func (_m *AuthService) FetchAuth(authD *domain.AccessDetails) (uint64, error)
- func (_m *AuthService) TokenValid(r *http.Request) error
- func (_m *AuthService) ValidateToken(r *http.Request) (*jwt.Token, error)
- type MysqlClient
- type ProductHandler
- type ProductRepository
- type ProductService
- type RedisClient
- type UserHandler
- type UserHandlerDynamoDb
- type UserRepository
- func (_m *UserRepository) AddUser(user domain.User) domain.User
- func (_m *UserRepository) DeleteUser(user domain.User)
- func (_m *UserRepository) GetAllUsers() []domain.User
- func (_m *UserRepository) GetUserByID(id uint) domain.User
- func (_m *UserRepository) GetUserByUsername(username string) domain.User
- type UserRepositoryCtx
- func (_m *UserRepositoryCtx) Delete(ctx context.Context, id uint) error
- func (_m *UserRepositoryCtx) Find(ctx context.Context, id uint) (domain.User, error)
- func (_m *UserRepositoryCtx) Insert(ctx context.Context, user domain.User) error
- func (_m *UserRepositoryCtx) Update(ctx context.Context, user domain.User) error
- type UserService
- type UserServiceDynamoDb
- func (_m *UserServiceDynamoDb) Delete(ctx context.Context, id uint) error
- func (_m *UserServiceDynamoDb) Find(ctx context.Context, id uint) (domain.User, error)
- func (_m *UserServiceDynamoDb) Insert(ctx context.Context, user domain.User) error
- func (_m *UserServiceDynamoDb) Update(ctx context.Context, user domain.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
AuthHandler is an autogenerated mock type for the AuthHandler type
func (*AuthHandler) Login ¶
func (_m *AuthHandler) Login(c *gin.Context)
Login provides a mock function with given fields: c
func (*AuthHandler) Logout ¶
func (_m *AuthHandler) Logout(c *gin.Context)
Logout provides a mock function with given fields: c
func (*AuthHandler) Refresh ¶
func (_m *AuthHandler) Refresh(c *gin.Context)
Refresh provides a mock function with given fields: c
type AuthService ¶
AuthService is an autogenerated mock type for the AuthService type
func (*AuthService) CreateAuth ¶
func (_m *AuthService) CreateAuth(userid uint, td *domain.TokenDetails) error
CreateAuth provides a mock function with given fields: userid, td
func (*AuthService) CreateToken ¶
func (_m *AuthService) CreateToken(userid uint) (*domain.TokenDetails, error)
CreateToken provides a mock function with given fields: userid
func (*AuthService) DeleteAuth ¶
func (_m *AuthService) DeleteAuth(givenUuid string) (int64, error)
DeleteAuth provides a mock function with given fields: givenUuid
func (*AuthService) DeleteTokens ¶
func (_m *AuthService) DeleteTokens(authD *domain.AccessDetails) error
DeleteTokens provides a mock function with given fields: authD
func (*AuthService) ExtractTokenMetadata ¶
func (_m *AuthService) ExtractTokenMetadata(r *http.Request) (*domain.AccessDetails, error)
ExtractTokenMetadata provides a mock function with given fields: r
func (*AuthService) FetchAuth ¶
func (_m *AuthService) FetchAuth(authD *domain.AccessDetails) (uint64, error)
FetchAuth provides a mock function with given fields: authD
func (*AuthService) TokenValid ¶
func (_m *AuthService) TokenValid(r *http.Request) error
TokenValid provides a mock function with given fields: r
func (*AuthService) ValidateToken ¶
ValidateToken provides a mock function with given fields: r
type MysqlClient ¶
MysqlClient is an autogenerated mock type for the MysqlClient type
func (*MysqlClient) GetClient ¶
func (_m *MysqlClient) GetClient() *gorm.DB
GetClient provides a mock function with given fields:
type ProductHandler ¶
ProductHandler is an autogenerated mock type for the ProductHandler type
func (*ProductHandler) AddProduct ¶
func (_m *ProductHandler) AddProduct(c *gin.Context)
AddProduct provides a mock function with given fields: c
func (*ProductHandler) DeleteProduct ¶
func (_m *ProductHandler) DeleteProduct(c *gin.Context)
DeleteProduct provides a mock function with given fields: c
func (*ProductHandler) GetAllProducts ¶
func (_m *ProductHandler) GetAllProducts(c *gin.Context)
GetAllProducts provides a mock function with given fields: c
func (*ProductHandler) GetProductByID ¶
func (_m *ProductHandler) GetProductByID(c *gin.Context)
GetProductByID provides a mock function with given fields: c
func (*ProductHandler) UpdateProduct ¶
func (_m *ProductHandler) UpdateProduct(c *gin.Context)
UpdateProduct provides a mock function with given fields: c
type ProductRepository ¶
ProductRepository is an autogenerated mock type for the ProductRepository type
func (*ProductRepository) AddProduct ¶
func (_m *ProductRepository) AddProduct(product domain.Product) domain.Product
AddProduct provides a mock function with given fields: product
func (*ProductRepository) DeleteProduct ¶
func (_m *ProductRepository) DeleteProduct(product domain.Product)
DeleteProduct provides a mock function with given fields: product
func (*ProductRepository) GetAllProducts ¶
func (_m *ProductRepository) GetAllProducts() []domain.Product
GetAllProducts provides a mock function with given fields:
func (*ProductRepository) GetProductByID ¶
func (_m *ProductRepository) GetProductByID(id uint) domain.Product
GetProductByID provides a mock function with given fields: id
type ProductService ¶
ProductService is an autogenerated mock type for the ProductService type
func (*ProductService) AddProduct ¶
func (_m *ProductService) AddProduct(product domain.Product) domain.Product
AddProduct provides a mock function with given fields: product
func (*ProductService) DeleteProduct ¶
func (_m *ProductService) DeleteProduct(product domain.Product)
DeleteProduct provides a mock function with given fields: product
func (*ProductService) GetAllProducts ¶
func (_m *ProductService) GetAllProducts() []domain.Product
GetAllProducts provides a mock function with given fields:
func (*ProductService) GetProductByID ¶
func (_m *ProductService) GetProductByID(id uint) domain.Product
GetProductByID provides a mock function with given fields: id
type RedisClient ¶
RedisClient is an autogenerated mock type for the RedisClient type
func (*RedisClient) GetClient ¶
func (_m *RedisClient) GetClient() *redis.Client
GetClient provides a mock function with given fields:
type UserHandler ¶
UserHandler is an autogenerated mock type for the UserHandler type
func (*UserHandler) AddUser ¶
func (_m *UserHandler) AddUser(c *gin.Context)
AddUser provides a mock function with given fields: c
func (*UserHandler) DeleteUser ¶
func (_m *UserHandler) DeleteUser(c *gin.Context)
DeleteUser provides a mock function with given fields: c
func (*UserHandler) GetAllUsers ¶
func (_m *UserHandler) GetAllUsers(c *gin.Context)
GetAllUsers provides a mock function with given fields: c
func (*UserHandler) GetUserByID ¶
func (_m *UserHandler) GetUserByID(c *gin.Context)
GetUserByID provides a mock function with given fields: c
func (*UserHandler) UpdateUser ¶
func (_m *UserHandler) UpdateUser(c *gin.Context)
UpdateUser provides a mock function with given fields: c
type UserHandlerDynamoDb ¶
UserHandlerDynamoDb is an autogenerated mock type for the UserHandlerDynamoDb type
func (*UserHandlerDynamoDb) Delete ¶
func (_m *UserHandlerDynamoDb) Delete(c *gin.Context)
Delete provides a mock function with given fields: c
func (*UserHandlerDynamoDb) Find ¶
func (_m *UserHandlerDynamoDb) Find(c *gin.Context)
Find provides a mock function with given fields: c
func (*UserHandlerDynamoDb) Insert ¶
func (_m *UserHandlerDynamoDb) Insert(c *gin.Context)
Insert provides a mock function with given fields: c
func (*UserHandlerDynamoDb) Update ¶
func (_m *UserHandlerDynamoDb) Update(c *gin.Context)
Update provides a mock function with given fields: c
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func (*UserRepository) AddUser ¶
func (_m *UserRepository) AddUser(user domain.User) domain.User
AddUser provides a mock function with given fields: user
func (*UserRepository) DeleteUser ¶
func (_m *UserRepository) DeleteUser(user domain.User)
DeleteUser provides a mock function with given fields: user
func (*UserRepository) GetAllUsers ¶
func (_m *UserRepository) GetAllUsers() []domain.User
GetAllUsers provides a mock function with given fields:
func (*UserRepository) GetUserByID ¶
func (_m *UserRepository) GetUserByID(id uint) domain.User
GetUserByID provides a mock function with given fields: id
func (*UserRepository) GetUserByUsername ¶
func (_m *UserRepository) GetUserByUsername(username string) domain.User
GetUserByUsername provides a mock function with given fields: username
type UserRepositoryCtx ¶
UserRepositoryCtx is an autogenerated mock type for the UserRepositoryCtx type
func (*UserRepositoryCtx) Delete ¶
func (_m *UserRepositoryCtx) Delete(ctx context.Context, id uint) error
Delete provides a mock function with given fields: ctx, id
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func (*UserService) AddUser ¶
func (_m *UserService) AddUser(user domain.User) domain.User
AddUser provides a mock function with given fields: user
func (*UserService) DeleteUser ¶
func (_m *UserService) DeleteUser(_a0 domain.User)
DeleteUser provides a mock function with given fields: _a0
func (*UserService) GetAllUsers ¶
func (_m *UserService) GetAllUsers() []domain.User
GetAllUsers provides a mock function with given fields:
func (*UserService) GetUserByID ¶
func (_m *UserService) GetUserByID(id uint) domain.User
GetUserByID provides a mock function with given fields: id
func (*UserService) GetUserByUsername ¶
func (_m *UserService) GetUserByUsername(username string) domain.User
GetUserByUsername provides a mock function with given fields: username
type UserServiceDynamoDb ¶
UserServiceDynamoDb is an autogenerated mock type for the UserServiceDynamoDb type
func (*UserServiceDynamoDb) Delete ¶
func (_m *UserServiceDynamoDb) Delete(ctx context.Context, id uint) error
Delete provides a mock function with given fields: ctx, id