Documentation ¶
Index ¶
- type Server
- func (s *Server) CreateOrder(ctx context.Context, req *order.CreateOrderRequest) (*order.Order, error)
- func (s *Server) DeleteBook(ctx context.Context, req *order.DeleteBookRequest) (*emptypb.Empty, error)
- func (s *Server) Echo(ctx context.Context, req *demo.DemoRequest) (*demo.DemoResponse, error)
- func (s *Server) Empty(ctx context.Context, req *demo.EmptyMessage) (*demo.EmptyMessage, error)
- func (s *Server) GetOrder(ctx context.Context, req *order.GetOrderRequest) (*order.Order, 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 (*Server) DeleteBook ¶ added in v0.5.0
func (*Server) Echo ¶
func (s *Server) Echo(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.EmptyMessage) (*demo.EmptyMessage, 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.