Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewCartUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type CartRepo ¶
type CartRepo interface { Empty(context.Context, string) error AddItem(context.Context, string, *CartItem) error Get(context.Context, string) (*Cart, error) }
CartRepo is a Cart repo.
type CartUsecase ¶
type CartUsecase struct {
// contains filtered or unexported fields
}
CartUsecase is a Cart usecase.
func NewCartUsecase ¶
func NewCartUsecase(repo CartRepo, logger log.Logger) *CartUsecase
NewCartUsecase new a Cart usecase.
Click to show internal directories.
Click to hide internal directories.