mocks

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	mock.Mock
}

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

type AuthService struct {
	mock.Mock
}

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

func (_m *AuthService) ValidateToken(r *http.Request) (*jwt.Token, error)

ValidateToken provides a mock function with given fields: r

type MysqlClient

type MysqlClient struct {
	mock.Mock
}

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

type ProductHandler struct {
	mock.Mock
}

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

type ProductRepository struct {
	mock.Mock
}

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

type ProductService struct {
	mock.Mock
}

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

type RedisClient struct {
	mock.Mock
}

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

type UserHandler struct {
	mock.Mock
}

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

type UserHandlerDynamoDb struct {
	mock.Mock
}

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

type UserRepository struct {
	mock.Mock
}

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

type UserRepositoryCtx struct {
	mock.Mock
}

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

func (*UserRepositoryCtx) Find

func (_m *UserRepositoryCtx) Find(ctx context.Context, id uint) (domain.User, error)

Find provides a mock function with given fields: ctx, id

func (*UserRepositoryCtx) Insert

func (_m *UserRepositoryCtx) Insert(ctx context.Context, user domain.User) error

Insert provides a mock function with given fields: ctx, user

func (*UserRepositoryCtx) Update

func (_m *UserRepositoryCtx) Update(ctx context.Context, user domain.User) error

Update provides a mock function with given fields: ctx, user

type UserService

type UserService struct {
	mock.Mock
}

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

type UserServiceDynamoDb struct {
	mock.Mock
}

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

func (*UserServiceDynamoDb) Find

func (_m *UserServiceDynamoDb) Find(ctx context.Context, id uint) (domain.User, error)

Find provides a mock function with given fields: ctx, id

func (*UserServiceDynamoDb) Insert

func (_m *UserServiceDynamoDb) Insert(ctx context.Context, user domain.User) error

Insert provides a mock function with given fields: ctx, user

func (*UserServiceDynamoDb) Update

func (_m *UserServiceDynamoDb) Update(ctx context.Context, user domain.User) error

Update provides a mock function with given fields: ctx, user

Jump to

Keyboard shortcuts

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