mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 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 added in v1.2.2

type AuthHandler struct {
	mock.Mock
}

AuthHandler is an autogenerated mock type for the AuthHandler type

func (*AuthHandler) Login added in v1.2.2

func (_m *AuthHandler) Login(c *gin.Context)

Login provides a mock function with given fields: c

func (*AuthHandler) Logout added in v1.2.2

func (_m *AuthHandler) Logout(c *gin.Context)

Logout provides a mock function with given fields: c

func (*AuthHandler) Refresh added in v1.2.2

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 string, td *domain.TokenDetails) error

CreateAuth provides a mock function with given fields: userID, td

func (*AuthService) CreateToken

func (_m *AuthService) CreateToken(userID string) (*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 added in v1.2.2

type UserHandlerDynamoDb struct {
	mock.Mock
}

UserHandlerDynamoDb is an autogenerated mock type for the UserHandlerDynamoDb type

func (*UserHandlerDynamoDb) Delete added in v1.2.2

func (_m *UserHandlerDynamoDb) Delete(c *gin.Context)

Delete provides a mock function with given fields: c

func (*UserHandlerDynamoDb) FindByUUID added in v1.2.2

func (_m *UserHandlerDynamoDb) FindByUUID(c *gin.Context)

FindByUUID provides a mock function with given fields: c

func (*UserHandlerDynamoDb) FindByUsername added in v1.2.2

func (_m *UserHandlerDynamoDb) FindByUsername(c *gin.Context)

FindByUsername provides a mock function with given fields: c

func (*UserHandlerDynamoDb) Insert added in v1.2.2

func (_m *UserHandlerDynamoDb) Insert(c *gin.Context)

Insert provides a mock function with given fields: c

func (*UserHandlerDynamoDb) Update added in v1.2.2

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 UserRepositoryDynamoDb added in v1.3.0

type UserRepositoryDynamoDb struct {
	mock.Mock
}

UserRepositoryCtx is an autogenerated mock type for the UserRepositoryCtx type

func (*UserRepositoryDynamoDb) CreateTable added in v1.3.0

func (_m *UserRepositoryDynamoDb) CreateTable(ctx context.Context) error

CreateTable provides a mock function with given fields: ctx

func (*UserRepositoryDynamoDb) Delete added in v1.3.0

func (_m *UserRepositoryDynamoDb) Delete(ctx context.Context, id string) error

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

func (*UserRepositoryDynamoDb) FindByUUID added in v1.3.0

func (_m *UserRepositoryDynamoDb) FindByUUID(ctx context.Context, id string) (domain.User, error)

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

func (*UserRepositoryDynamoDb) FindByUsername added in v1.3.0

func (_m *UserRepositoryDynamoDb) FindByUsername(ctx context.Context, username string) (domain.User, error)

FindByUsername provides a mock function with given fields: ctx, username

func (*UserRepositoryDynamoDb) Insert added in v1.3.0

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

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

func (*UserRepositoryDynamoDb) Update added in v1.3.0

func (_m *UserRepositoryDynamoDb) 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 added in v1.2.2

type UserServiceDynamoDb struct {
	mock.Mock
}

UserServiceDynamoDb is an autogenerated mock type for the UserServiceDynamoDb type

func (*UserServiceDynamoDb) CreateTable added in v1.3.0

func (_m *UserServiceDynamoDb) CreateTable(ctx context.Context) error

CreateTable provides a mock function with given fields: ctx

func (*UserServiceDynamoDb) Delete added in v1.2.2

func (_m *UserServiceDynamoDb) Delete(ctx context.Context, uuid string) error

Delete provides a mock function with given fields: ctx, uuid

func (*UserServiceDynamoDb) FindByUUID added in v1.2.2

func (_m *UserServiceDynamoDb) FindByUUID(ctx context.Context, id string) (domain.User, error)

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

func (*UserServiceDynamoDb) FindByUsername added in v1.2.2

func (_m *UserServiceDynamoDb) FindByUsername(ctx context.Context, username string) (domain.User, error)

FindByUsername provides a mock function with given fields: ctx, username

func (*UserServiceDynamoDb) Insert added in v1.2.2

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

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

func (*UserServiceDynamoDb) Update added in v1.2.2

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