Documentation ¶
Index ¶
- type Server
- func (s *Server) CreateOrder(ctx context.Context, req *order.CreateOrderRequest) (*order.CreateOrderResponse, error)
- func (s *Server) DeleteOrder(ctx context.Context, req *order.DeleteOrderRequest) (*emptypb.Empty, error)
- func (s *Server) Demo(ctx context.Context, req *demo.DemoRequest) (*demo.DemoResponse, error)
- func (s *Server) Empty(ctx context.Context, req *demo.EmptyRequest) (*demo.EmptyResponse, error)
- func (s *Server) GetOrder(ctx context.Context, req *order.GetOrderRequest) (*order.GetOrderResponse, error)
- func (s *Server) ListOrders(ctx context.Context, req *order.ListOrdersRequest) (*order.ListOrdersResponse, error)
- func (s *Server) UpdateOrder(ctx context.Context, req *order.UpdateOrderRequest) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { // 使用unsafe可以强制让编译器检查是否实现了相关方法 demo.UnsafeDemoServiceServer order.UnsafeOrderServiceServer }
func (*Server) CreateOrder ¶ added in v0.5.0
func (s *Server) CreateOrder(ctx context.Context, req *order.CreateOrderRequest) (*order.CreateOrderResponse, error)
func (*Server) DeleteOrder ¶ added in v0.7.2
func (*Server) Demo ¶ added in v0.7.2
func (s *Server) Demo(ctx context.Context, req *demo.DemoRequest) (*demo.DemoResponse, error)
func (*Server) Empty ¶ added in v0.2.0
func (s *Server) Empty(ctx context.Context, req *demo.EmptyRequest) (*demo.EmptyResponse, error)
func (*Server) GetOrder ¶ added in v0.5.0
func (s *Server) GetOrder(ctx context.Context, req *order.GetOrderRequest) (*order.GetOrderResponse, error)
func (*Server) ListOrders ¶ added in v0.5.0
func (s *Server) ListOrders(ctx context.Context, req *order.ListOrdersRequest) (*order.ListOrdersResponse, error)
func (*Server) UpdateOrder ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.