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 // 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 ¶
func (s *OrderService) ListOrders(ctx context.Context, in *pb.ListOrdersRequest) (*pb.ListOrdersResponse, error)
Click to show internal directories.
Click to hide internal directories.