order

package
v0.0.0-...-f8a7b2a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Svc

type Svc struct {
	order.UnimplementedOrderServiceServer
	// contains filtered or unexported fields
}

func New

func New(adminOrg string, orderStatusMap map[string]*order.Order, psc *sp.Svc) *Svc

func (*Svc) GetAllOrder

func (s *Svc) GetAllOrder(ctx context.Context, req *emptypb.Empty) (*order.OrderStatus, error)

func (*Svc) GetOrderById

func (s *Svc) GetOrderById(ctx context.Context, req *order.GetOrderByIdRequest) (*order.Order, error)

func (*Svc) GetOrderByStatus

func (s *Svc) GetOrderByStatus(ctx context.Context, req *order.GetOrderByStatusRequest) (*order.OrderStatus, error)

func (*Svc) PlaceOrder

func (s *Svc) PlaceOrder(ctx context.Context, req *order.PlaceOrderRequest) (*order.PlaceOrderResponse, error)

func (*Svc) RegisterOrderService

func (h *Svc) RegisterOrderService(srv *grpc.Server) error

RegisterService with grpc server.

func (*Svc) UpdateOrderStatus

func (s *Svc) UpdateOrderStatus(ctx context.Context, req *order.UpdateOrderStatusRequest) (*order.Order, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL