Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGreeterService, NewOrderService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type GreeterService ¶
type GreeterService struct { v1.UnimplementedJobServer // contains filtered or unexported fields }
GreeterService is a greeter service.
func NewGreeterService ¶
func NewGreeterService(uc *biz.GreeterUsecase, oc *biz.OrderQueueUsecase, logger log.Logger) *GreeterService
NewGreeterService new a greeter service.
func (*GreeterService) SayHello ¶
func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)
SayHello implements helloworld.GreeterServer
type OrderService ¶
type OrderService struct {
// contains filtered or unexported fields
}
OrderService is a order service.
func NewOrderService ¶
func NewOrderService(oc *biz.OrderQueueUsecase) *OrderService
NewOrderService new a greeter service.
func (*OrderService) Create ¶
func (s *OrderService) Create(ctx context.Context, m *biz.SeckillOrder)
Click to show internal directories.
Click to hide internal directories.