Documentation ¶
Index ¶
- Variables
- func RegisterOrderServiceServer(s *grpc.Server, srv OrderServiceServer)
- type OrderInfo
- func (*OrderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OrderInfo) GetOrderId() string
- func (x *OrderInfo) GetOrderName() string
- func (x *OrderInfo) GetOrderStatus() string
- func (*OrderInfo) ProtoMessage()
- func (x *OrderInfo) ProtoReflect() protoreflect.Message
- func (x *OrderInfo) Reset()
- func (x *OrderInfo) String() string
- type OrderRequest
- func (*OrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderRequest) GetOrderId() string
- func (x *OrderRequest) GetTimeStamp() int64
- func (*OrderRequest) ProtoMessage()
- func (x *OrderRequest) ProtoReflect() protoreflect.Message
- func (x *OrderRequest) Reset()
- func (x *OrderRequest) String() string
- type OrderServiceClient
- type OrderServiceServer
- type OrderService_GetOrderInfosClient
- type OrderService_GetOrderInfosServer
- type UnimplementedOrderServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hgrpc_1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOrderServiceServer ¶
func RegisterOrderServiceServer(s *grpc.Server, srv OrderServiceServer)
Types ¶
type OrderInfo ¶
type OrderInfo struct { OrderId string `protobuf:"bytes,1,opt,name=OrderId,proto3" json:"OrderId,omitempty"` OrderName string `protobuf:"bytes,2,opt,name=OrderName,proto3" json:"OrderName,omitempty"` OrderStatus string `protobuf:"bytes,3,opt,name=OrderStatus,proto3" json:"OrderStatus,omitempty"` // contains filtered or unexported fields }
订单信息
func (*OrderInfo) Descriptor
deprecated
func (*OrderInfo) GetOrderId ¶
func (*OrderInfo) GetOrderName ¶
func (*OrderInfo) GetOrderStatus ¶
func (*OrderInfo) ProtoMessage ¶
func (*OrderInfo) ProtoMessage()
func (*OrderInfo) ProtoReflect ¶
func (x *OrderInfo) ProtoReflect() protoreflect.Message
type OrderRequest ¶
type OrderRequest struct { OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` TimeStamp int64 `protobuf:"varint,2,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"` // contains filtered or unexported fields }
订单请求参数
func (*OrderRequest) Descriptor
deprecated
func (*OrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderRequest.ProtoReflect.Descriptor instead.
func (*OrderRequest) GetOrderId ¶
func (x *OrderRequest) GetOrderId() string
func (*OrderRequest) GetTimeStamp ¶
func (x *OrderRequest) GetTimeStamp() int64
func (*OrderRequest) ProtoMessage ¶
func (*OrderRequest) ProtoMessage()
func (*OrderRequest) ProtoReflect ¶
func (x *OrderRequest) ProtoReflect() protoreflect.Message
func (*OrderRequest) Reset ¶
func (x *OrderRequest) Reset()
func (*OrderRequest) String ¶
func (x *OrderRequest) String() string
type OrderServiceClient ¶
type OrderServiceClient interface { GetOrderInfo(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*OrderInfo, error) GetOrderInfos(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (OrderService_GetOrderInfosClient, error) }
OrderServiceClient is the client API for OrderService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOrderServiceClient ¶
func NewOrderServiceClient(cc grpc.ClientConnInterface) OrderServiceClient
type OrderServiceServer ¶
type OrderServiceServer interface { GetOrderInfo(context.Context, *OrderRequest) (*OrderInfo, error) GetOrderInfos(*OrderRequest, OrderService_GetOrderInfosServer) error }
OrderServiceServer is the server API for OrderService service.
type OrderService_GetOrderInfosClient ¶
type OrderService_GetOrderInfosClient interface { Recv() (*OrderInfo, error) grpc.ClientStream }
type OrderService_GetOrderInfosServer ¶
type OrderService_GetOrderInfosServer interface { Send(*OrderInfo) error grpc.ServerStream }
type UnimplementedOrderServiceServer ¶
type UnimplementedOrderServiceServer struct { }
UnimplementedOrderServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOrderServiceServer) GetOrderInfo ¶
func (*UnimplementedOrderServiceServer) GetOrderInfo(context.Context, *OrderRequest) (*OrderInfo, error)
func (*UnimplementedOrderServiceServer) GetOrderInfos ¶
func (*UnimplementedOrderServiceServer) GetOrderInfos(*OrderRequest, OrderService_GetOrderInfosServer) error
Click to show internal directories.
Click to hide internal directories.