Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderService ¶
type OrderService struct { pb.UnimplementedOrderServiceServer CreateOrderUseCase *usecase.CreateOrderUseCase // contains filtered or unexported fields }
func NewOrderService ¶
func NewOrderService(createOrderUseCase *usecase.CreateOrderUseCase, listOrdersUseCase *usecase.ListOrdersUseCase) *OrderService
func (*OrderService) CreateOrder ¶
func (s *OrderService) CreateOrder(ctx context.Context, in *pb.CreateOrderRequest) (*pb.CreateOrderResponse, error)
func (*OrderService) ListOrders ¶
Click to show internal directories.
Click to hide internal directories.