Documentation
¶
Index ¶
- func NewAuthUsecase(repo port.UserRepository, ts port.TokenService) port.AuthService
- func NewCategoryUsecase(repo port.CategoryRepository, cache port.CacheRepository) *categoryUsecase
- func NewOrderUsecase(orderRepo port.OrderRepository, productRepo port.ProductRepository, ...) port.OrderService
- func NewPaymentUsecase(repo port.PaymentRepository, cache port.CacheRepository) port.PaymentService
- func NewProductUsecase(productRepo port.ProductRepository, categoryRepo port.CategoryRepository, ...) port.ProductService
- func NewUserUsecase(repo port.UserRepository, cache port.CacheRepository) port.UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthUsecase ¶
func NewAuthUsecase(repo port.UserRepository, ts port.TokenService) port.AuthService
NewAuthUsecase creates a new auth service instance
func NewCategoryUsecase ¶
func NewCategoryUsecase(repo port.CategoryRepository, cache port.CacheRepository) *categoryUsecase
NewCategoryUsecase creates a new category service instance
func NewOrderUsecase ¶
func NewOrderUsecase(orderRepo port.OrderRepository, productRepo port.ProductRepository, categoryRepo port.CategoryRepository, userRepo port.UserRepository, paymentRepo port.PaymentRepository, cache port.CacheRepository) port.OrderService
NewOrderUsecase creates a new order service instance
func NewPaymentUsecase ¶
func NewPaymentUsecase(repo port.PaymentRepository, cache port.CacheRepository) port.PaymentService
NewPaymentUsecase creates a new payment service instance
func NewProductUsecase ¶
func NewProductUsecase(productRepo port.ProductRepository, categoryRepo port.CategoryRepository, cache port.CacheRepository) port.ProductService
NewProductUsecase creates a new product service instance
func NewUserUsecase ¶
func NewUserUsecase(repo port.UserRepository, cache port.CacheRepository) port.UserService
NewUserUsecase creates a new user service instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.