message

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use OrderInfo.ProtoReflect.Descriptor instead.

func (*OrderInfo) GetOrderId

func (x *OrderInfo) GetOrderId() string

func (*OrderInfo) GetOrderName

func (x *OrderInfo) GetOrderName() string

func (*OrderInfo) GetOrderStatus

func (x *OrderInfo) GetOrderStatus() string

func (*OrderInfo) ProtoMessage

func (*OrderInfo) ProtoMessage()

func (*OrderInfo) ProtoReflect

func (x *OrderInfo) ProtoReflect() protoreflect.Message

func (*OrderInfo) Reset

func (x *OrderInfo) Reset()

func (*OrderInfo) String

func (x *OrderInfo) String() string

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.

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) GetOrderInfos

Jump to

Keyboard shortcuts

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