Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGreeterUsecase, NewOrderQueueUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type GreeterRepo ¶
type GreeterUsecase ¶
type GreeterUsecase struct {
// contains filtered or unexported fields
}
func NewGreeterUsecase ¶
func NewGreeterUsecase(repo GreeterRepo, logger log.Logger) *GreeterUsecase
type OrderQueueRepo ¶
type OrderQueueRepo interface {
CreateOrder(ctx context.Context, o *SeckillOrder) (*SeckillOrder, error)
}
type OrderQueueUsecase ¶
type OrderQueueUsecase struct {
// contains filtered or unexported fields
}
func NewOrderQueueUsecase ¶
func NewOrderQueueUsecase(repo OrderQueueRepo, logger log.Logger) *OrderQueueUsecase
func (*OrderQueueUsecase) Create ¶
func (uc *OrderQueueUsecase) Create(ctx context.Context, o *SeckillOrder) (*SeckillOrder, error)
type SeckillOrder ¶
Click to show internal directories.
Click to hide internal directories.