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 ListOrdersUseCase usecase.ListOrdersUseCase }
func NewOrderService ¶
func NewOrderService(createOrderUseCase usecase.CreateOrderUseCase, listOrdersUseCase usecase.ListOrdersUseCase) *OrderService
func (*OrderService) CreateOrder ¶
func (s *OrderService) CreateOrder(_ context.Context, in *pb.CreateOrderRequest) (*pb.Order, error)
func (*OrderService) ListOrders ¶
func (s *OrderService) ListOrders(_ context.Context, in *pb.ListOrdersRequest) (*pb.ListOrdersResponse, error)
Click to show internal directories.
Click to hide internal directories.