Documentation ¶
Index ¶
- type CustomerRepository
- func (_m *CustomerRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *CustomerRepository) FindByID(ctx context.Context, id uuid.UUID) (*domain.Customer, error)
- func (_m *CustomerRepository) FindMany(ctx context.Context, pagination *domain.Pagination, ...) ([]*domain.Customer, error)
- func (_m *CustomerRepository) Store(ctx context.Context, c *domain.Customer) (*domain.Customer, error)
- func (_m *CustomerRepository) Update(ctx context.Context, c *domain.Customer, id uuid.UUID) (*domain.Customer, error)
- type CustomerUsecase
- func (_m *CustomerUsecase) Create(c *domain.Customer) (*domain.Customer, error)
- func (_m *CustomerUsecase) GetByID(id uuid.UUID) (*domain.Customer, error)
- func (_m *CustomerUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Customer, error)
- func (_m *CustomerUsecase) Modify(c *domain.Customer, id uuid.UUID) (*domain.Customer, error)
- func (_m *CustomerUsecase) Remove(id uuid.UUID) error
- type DiscountRepository
- func (_m *DiscountRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *DiscountRepository) FindByID(ctx context.Context, id uuid.UUID) (*domain.Discount, error)
- func (_m *DiscountRepository) FindByTypeAndQuantity(ctx context.Context, dtype domain.LogisticsType, quantity int) (*domain.Discount, error)
- func (_m *DiscountRepository) FindMany(ctx context.Context, pagination *domain.Pagination, ...) ([]*domain.Discount, error)
- func (_m *DiscountRepository) Store(ctx context.Context, d *domain.Discount) (*domain.Discount, error)
- func (_m *DiscountRepository) Update(ctx context.Context, d *domain.Discount, id uuid.UUID) (*domain.Discount, error)
- type DiscountUsecase
- func (_m *DiscountUsecase) Create(d *domain.Discount) (*domain.Discount, error)
- func (_m *DiscountUsecase) GetByTypeAndQuantity(dtype domain.LogisticsType, quantity int) (*domain.Discount, error)
- func (_m *DiscountUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Discount, error)
- func (_m *DiscountUsecase) Modify(d *domain.Discount, id uuid.UUID) (*domain.Discount, error)
- func (_m *DiscountUsecase) Remove(id uuid.UUID) error
- type LoginUsecase
- func (_m *LoginUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *LoginUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *LoginUsecase) GetUserByEmail(c context.Context, email string) (*domain.User, error)
- type LogisticsRepository
- func (_m *LogisticsRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *LogisticsRepository) FindByID(ctx context.Context, id uuid.UUID) (*domain.Logistics, error)
- func (_m *LogisticsRepository) FindMany(ctx context.Context, pagination *domain.Pagination, ...) ([]*domain.Logistics, error)
- func (_m *LogisticsRepository) Store(ctx context.Context, ll *domain.Logistics) (*domain.Logistics, error)
- func (_m *LogisticsRepository) Update(ctx context.Context, ll *domain.Logistics, id uuid.UUID) (*domain.Logistics, error)
- type LogisticsUsecase
- func (_m *LogisticsUsecase) Create(ll *domain.Logistics) (*domain.Logistics, error)
- func (_m *LogisticsUsecase) GetByID(id uuid.UUID) (*domain.Logistics, error)
- func (_m *LogisticsUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Logistics, error)
- func (_m *LogisticsUsecase) Modify(ll *domain.Logistics, id uuid.UUID) (*domain.Logistics, error)
- func (_m *LogisticsUsecase) Remove(id uuid.UUID) error
- type ProductRepository
- func (_m *ProductRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *ProductRepository) FindByID(ctx context.Context, id uuid.UUID) (*domain.Product, error)
- func (_m *ProductRepository) FindMany(ctx context.Context, pagination *domain.Pagination, ...) ([]*domain.Product, error)
- func (_m *ProductRepository) Store(ctx context.Context, p *domain.Product) (*domain.Product, error)
- func (_m *ProductRepository) Update(ctx context.Context, p *domain.Product, id uuid.UUID) (*domain.Product, error)
- type ProductUsecase
- func (_m *ProductUsecase) Create(p *domain.Product) (*domain.Product, error)
- func (_m *ProductUsecase) GetByID(id uuid.UUID) (*domain.Product, error)
- func (_m *ProductUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Product, error)
- func (_m *ProductUsecase) Modify(p *domain.Product, id uuid.UUID) (*domain.Product, error)
- func (_m *ProductUsecase) Remove(id uuid.UUID) error
- type RefreshTokenUsecase
- func (_m *RefreshTokenUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *RefreshTokenUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *RefreshTokenUsecase) ExtractIDFromToken(requestToken string, secret string) (string, error)
- func (_m *RefreshTokenUsecase) GetUserByEmail(c context.Context, id string) (*domain.User, error)
- type SignupUsecase
- func (_m *SignupUsecase) Create(c context.Context, user *domain.User) (*domain.User, error)
- func (_m *SignupUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *SignupUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
- func (_m *SignupUsecase) GetUserByEmail(c context.Context, email string) (*domain.User, error)
- type UserRepository
- func (_m *UserRepository) Create(ctx context.Context, user *domain.User) (*domain.User, error)
- func (_m *UserRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *UserRepository) FindByEmail(ctx context.Context, email string) (*domain.User, error)
- func (_m *UserRepository) FindByID(ctx context.Context, id uuid.UUID) (*domain.User, error)
- func (_m *UserRepository) Update(ctx context.Context, user *domain.User) (*domain.User, error)
- type UserUseCase
- func (_m *UserUseCase) Create(ctx context.Context, user *domain.User) error
- func (_m *UserUseCase) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *UserUseCase) GetByEmail(ctx context.Context, email string) (*domain.User, error)
- func (_m *UserUseCase) GetByID(ctx context.Context, id uuid.UUID) (*domain.User, error)
- func (_m *UserUseCase) Update(ctx context.Context, user *domain.User) error
- type WarehousePortRepository
- func (_m *WarehousePortRepository) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *WarehousePortRepository) FindByID(ctx context.Context, id uuid.UUID) (*domain.WarehousesAndPorts, error)
- func (_m *WarehousePortRepository) FindMany(ctx context.Context, pagination *domain.Pagination, ...) ([]*domain.WarehousesAndPorts, error)
- func (_m *WarehousePortRepository) Store(ctx context.Context, wp *domain.WarehousesAndPorts) (*domain.WarehousesAndPorts, error)
- func (_m *WarehousePortRepository) Update(ctx context.Context, wp *domain.WarehousesAndPorts, id uuid.UUID) (*domain.WarehousesAndPorts, error)
- type WarehousePortUsecase
- func (_m *WarehousePortUsecase) Create(wp *domain.WarehousesAndPorts) (*domain.WarehousesAndPorts, error)
- func (_m *WarehousePortUsecase) GetByID(id uuid.UUID) (*domain.WarehousesAndPorts, error)
- func (_m *WarehousePortUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.WarehousesAndPorts, error)
- func (_m *WarehousePortUsecase) Modify(wp *domain.WarehousesAndPorts, id uuid.UUID) (*domain.WarehousesAndPorts, error)
- func (_m *WarehousePortUsecase) Remove(id uuid.UUID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerRepository ¶
CustomerRepository is an autogenerated mock type for the CustomerRepository type
func NewCustomerRepository ¶
func NewCustomerRepository(t mockConstructorTestingTNewCustomerRepository) *CustomerRepository
NewCustomerRepository creates a new instance of CustomerRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CustomerRepository) FindMany ¶
func (_m *CustomerRepository) FindMany(ctx context.Context, pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Customer, error)
FindMany provides a mock function with given fields: ctx, pagination, filters
type CustomerUsecase ¶
CustomerUsecase is an autogenerated mock type for the CustomerUsecase type
func NewCustomerUsecase ¶
func NewCustomerUsecase(t mockConstructorTestingTNewCustomerUsecase) *CustomerUsecase
NewCustomerUsecase creates a new instance of CustomerUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CustomerUsecase) GetMany ¶
func (_m *CustomerUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Customer, error)
GetMany provides a mock function with given fields: pagination, filters
type DiscountRepository ¶
DiscountRepository is an autogenerated mock type for the DiscountRepository type
func NewDiscountRepository ¶
func NewDiscountRepository(t mockConstructorTestingTNewDiscountRepository) *DiscountRepository
NewDiscountRepository creates a new instance of DiscountRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DiscountRepository) FindByTypeAndQuantity ¶
func (_m *DiscountRepository) FindByTypeAndQuantity(ctx context.Context, dtype domain.LogisticsType, quantity int) (*domain.Discount, error)
FindByTypeAndQuantity provides a mock function with given fields: ctx, dtype, quantity
func (*DiscountRepository) FindMany ¶
func (_m *DiscountRepository) FindMany(ctx context.Context, pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Discount, error)
FindMany provides a mock function with given fields: ctx, pagination, filters
type DiscountUsecase ¶
DiscountUsecase is an autogenerated mock type for the DiscountUsecase type
func NewDiscountUsecase ¶
func NewDiscountUsecase(t mockConstructorTestingTNewDiscountUsecase) *DiscountUsecase
NewDiscountUsecase creates a new instance of DiscountUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DiscountUsecase) GetByTypeAndQuantity ¶
func (_m *DiscountUsecase) GetByTypeAndQuantity(dtype domain.LogisticsType, quantity int) (*domain.Discount, error)
GetByTypeAndQuantity provides a mock function with given fields: dtype, quantity
func (*DiscountUsecase) GetMany ¶
func (_m *DiscountUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Discount, error)
GetMany provides a mock function with given fields: pagination, filters
type LoginUsecase ¶
LoginUsecase is an autogenerated mock type for the LoginUsecase type
func NewLoginUsecase ¶
func NewLoginUsecase(t mockConstructorTestingTNewLoginUsecase) *LoginUsecase
NewLoginUsecase creates a new instance of LoginUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*LoginUsecase) CreateAccessToken ¶
func (_m *LoginUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
CreateAccessToken provides a mock function with given fields: user, secret, expiry
func (*LoginUsecase) CreateRefreshToken ¶
func (_m *LoginUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
CreateRefreshToken provides a mock function with given fields: user, secret, expiry
func (*LoginUsecase) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: c, email
type LogisticsRepository ¶
LogisticsRepository is an autogenerated mock type for the LogisticsRepository type
func NewLogisticsRepository ¶
func NewLogisticsRepository(t mockConstructorTestingTNewLogisticsRepository) *LogisticsRepository
NewLogisticsRepository creates a new instance of LogisticsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*LogisticsRepository) FindByID ¶
func (_m *LogisticsRepository) FindByID(ctx context.Context, id uuid.UUID) (*domain.Logistics, error)
FindByID provides a mock function with given fields: ctx, id
func (*LogisticsRepository) FindMany ¶
func (_m *LogisticsRepository) FindMany(ctx context.Context, pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Logistics, error)
FindMany provides a mock function with given fields: ctx, pagination, filters
type LogisticsUsecase ¶
LogisticsUsecase is an autogenerated mock type for the LogisticsUsecase type
func NewLogisticsUsecase ¶
func NewLogisticsUsecase(t mockConstructorTestingTNewLogisticsUsecase) *LogisticsUsecase
NewLogisticsUsecase creates a new instance of LogisticsUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*LogisticsUsecase) GetMany ¶
func (_m *LogisticsUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Logistics, error)
GetMany provides a mock function with given fields: pagination, filters
type ProductRepository ¶
ProductRepository is an autogenerated mock type for the ProductRepository type
func NewProductRepository ¶
func NewProductRepository(t mockConstructorTestingTNewProductRepository) *ProductRepository
NewProductRepository creates a new instance of ProductRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProductRepository) FindMany ¶
func (_m *ProductRepository) FindMany(ctx context.Context, pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Product, error)
FindMany provides a mock function with given fields: ctx, pagination, filters
type ProductUsecase ¶
ProductUsecase is an autogenerated mock type for the ProductUsecase type
func NewProductUsecase ¶
func NewProductUsecase(t mockConstructorTestingTNewProductUsecase) *ProductUsecase
NewProductUsecase creates a new instance of ProductUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProductUsecase) GetMany ¶
func (_m *ProductUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.Product, error)
GetMany provides a mock function with given fields: pagination, filters
type RefreshTokenUsecase ¶
RefreshTokenUsecase is an autogenerated mock type for the RefreshTokenUsecase type
func NewRefreshTokenUsecase ¶
func NewRefreshTokenUsecase(t mockConstructorTestingTNewRefreshTokenUsecase) *RefreshTokenUsecase
NewRefreshTokenUsecase creates a new instance of RefreshTokenUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RefreshTokenUsecase) CreateAccessToken ¶
func (_m *RefreshTokenUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
CreateAccessToken provides a mock function with given fields: user, secret, expiry
func (*RefreshTokenUsecase) CreateRefreshToken ¶
func (_m *RefreshTokenUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
CreateRefreshToken provides a mock function with given fields: user, secret, expiry
func (*RefreshTokenUsecase) ExtractIDFromToken ¶
func (_m *RefreshTokenUsecase) ExtractIDFromToken(requestToken string, secret string) (string, error)
ExtractIDFromToken provides a mock function with given fields: requestToken, secret
func (*RefreshTokenUsecase) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: c, id
type SignupUsecase ¶
SignupUsecase is an autogenerated mock type for the SignupUsecase type
func NewSignupUsecase ¶
func NewSignupUsecase(t mockConstructorTestingTNewSignupUsecase) *SignupUsecase
NewSignupUsecase creates a new instance of SignupUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SignupUsecase) CreateAccessToken ¶
func (_m *SignupUsecase) CreateAccessToken(user *domain.User, secret string, expiry int) (string, error)
CreateAccessToken provides a mock function with given fields: user, secret, expiry
func (*SignupUsecase) CreateRefreshToken ¶
func (_m *SignupUsecase) CreateRefreshToken(user *domain.User, secret string, expiry int) (string, error)
CreateRefreshToken provides a mock function with given fields: user, secret, expiry
func (*SignupUsecase) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: c, email
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) FindByEmail ¶
FindByEmail provides a mock function with given fields: ctx, email
type UserUseCase ¶
UserUseCase is an autogenerated mock type for the UserUseCase type
func NewUserUseCase ¶
func NewUserUseCase(t mockConstructorTestingTNewUserUseCase) *UserUseCase
NewUserUseCase creates a new instance of UserUseCase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*UserUseCase) GetByEmail ¶
GetByEmail provides a mock function with given fields: ctx, email
type WarehousePortRepository ¶
WarehousePortRepository is an autogenerated mock type for the WarehousePortRepository type
func NewWarehousePortRepository ¶
func NewWarehousePortRepository(t mockConstructorTestingTNewWarehousePortRepository) *WarehousePortRepository
NewWarehousePortRepository creates a new instance of WarehousePortRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WarehousePortRepository) FindByID ¶
func (_m *WarehousePortRepository) FindByID(ctx context.Context, id uuid.UUID) (*domain.WarehousesAndPorts, error)
FindByID provides a mock function with given fields: ctx, id
func (*WarehousePortRepository) FindMany ¶
func (_m *WarehousePortRepository) FindMany(ctx context.Context, pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.WarehousesAndPorts, error)
FindMany provides a mock function with given fields: ctx, pagination, filters
func (*WarehousePortRepository) Store ¶
func (_m *WarehousePortRepository) Store(ctx context.Context, wp *domain.WarehousesAndPorts) (*domain.WarehousesAndPorts, error)
Store provides a mock function with given fields: ctx, wp
func (*WarehousePortRepository) Update ¶
func (_m *WarehousePortRepository) Update(ctx context.Context, wp *domain.WarehousesAndPorts, id uuid.UUID) (*domain.WarehousesAndPorts, error)
Update provides a mock function with given fields: ctx, wp, id
type WarehousePortUsecase ¶
WarehousePortUsecase is an autogenerated mock type for the WarehousePortUsecase type
func NewWarehousePortUsecase ¶
func NewWarehousePortUsecase(t mockConstructorTestingTNewWarehousePortUsecase) *WarehousePortUsecase
NewWarehousePortUsecase creates a new instance of WarehousePortUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*WarehousePortUsecase) Create ¶
func (_m *WarehousePortUsecase) Create(wp *domain.WarehousesAndPorts) (*domain.WarehousesAndPorts, error)
Create provides a mock function with given fields: wp
func (*WarehousePortUsecase) GetByID ¶
func (_m *WarehousePortUsecase) GetByID(id uuid.UUID) (*domain.WarehousesAndPorts, error)
GetByID provides a mock function with given fields: id
func (*WarehousePortUsecase) GetMany ¶
func (_m *WarehousePortUsecase) GetMany(pagination *domain.Pagination, filters map[string]interface{}) ([]*domain.WarehousesAndPorts, error)
GetMany provides a mock function with given fields: pagination, filters
func (*WarehousePortUsecase) Modify ¶
func (_m *WarehousePortUsecase) Modify(wp *domain.WarehousesAndPorts, id uuid.UUID) (*domain.WarehousesAndPorts, error)
Modify provides a mock function with given fields: wp, id
Source Files ¶
- CustomerRepository.go
- CustomerUsecase.go
- DiscountRepository.go
- DiscountUsecase.go
- LoginUsecase.go
- LogisticsRepository.go
- LogisticsUsecase.go
- ProductRepository.go
- ProductUsecase.go
- RefreshTokenUsecase.go
- SignupUsecase.go
- UserRepository.go
- UserUseCase.go
- WarehousePortRepository.go
- WarehousePortUsecase.go