TestService

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_Greeter_proto protoreflect.FileDescriptor
View Source
var File_OrderMessage_proto protoreflect.FileDescriptor
View Source
var Order2Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TestService.Order2Service",
	HandlerType: (*Order2ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOrderInfo",
			Handler:    _Order2Service_GetOrderInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "Greeter.proto",
}

Order2Service_ServiceDesc is the grpc.ServiceDesc for Order2Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var OrderService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TestService.OrderService",
	HandlerType: (*OrderServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOrderInfo",
			Handler:    _OrderService_GetOrderInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "OrderMessage.proto",
}

OrderService_ServiceDesc is the grpc.ServiceDesc for OrderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterOrder2ServiceServer

func RegisterOrder2ServiceServer(s grpc.ServiceRegistrar, srv Order2ServiceServer)

func RegisterOrderServiceServer

func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)

Types

type Order2ServiceClient

type Order2ServiceClient interface {
	GetOrderInfo(ctx context.Context, in *OrderRequest2, opts ...grpc.CallOption) (*OrderInfo2, error)
}

Order2ServiceClient is the client API for Order2Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type Order2ServiceServer

type Order2ServiceServer interface {
	GetOrderInfo(context.Context, *OrderRequest2) (*OrderInfo2, error)
	// contains filtered or unexported methods
}

Order2ServiceServer is the server API for Order2Service service. All implementations must embed UnimplementedOrder2ServiceServer for forward compatibility

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 OrderInfo2

type OrderInfo2 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 (*OrderInfo2) Descriptor deprecated

func (*OrderInfo2) Descriptor() ([]byte, []int)

Deprecated: Use OrderInfo2.ProtoReflect.Descriptor instead.

func (*OrderInfo2) GetOrderId

func (x *OrderInfo2) GetOrderId() string

func (*OrderInfo2) GetOrderName

func (x *OrderInfo2) GetOrderName() string

func (*OrderInfo2) GetOrderStatus

func (x *OrderInfo2) GetOrderStatus() string

func (*OrderInfo2) ProtoMessage

func (*OrderInfo2) ProtoMessage()

func (*OrderInfo2) ProtoReflect

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

func (*OrderInfo2) Reset

func (x *OrderInfo2) Reset()

func (*OrderInfo2) String

func (x *OrderInfo2) 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 OrderRequest2

type OrderRequest2 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 (*OrderRequest2) Descriptor deprecated

func (*OrderRequest2) Descriptor() ([]byte, []int)

Deprecated: Use OrderRequest2.ProtoReflect.Descriptor instead.

func (*OrderRequest2) GetOrderId

func (x *OrderRequest2) GetOrderId() string

func (*OrderRequest2) GetTimeStamp

func (x *OrderRequest2) GetTimeStamp() int64

func (*OrderRequest2) ProtoMessage

func (*OrderRequest2) ProtoMessage()

func (*OrderRequest2) ProtoReflect

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

func (*OrderRequest2) Reset

func (x *OrderRequest2) Reset()

func (*OrderRequest2) String

func (x *OrderRequest2) String() string

type OrderServiceClient

type OrderServiceClient interface {
	GetOrderInfo(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*OrderInfo, error)
}

OrderServiceClient is the client API for OrderService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type OrderServiceServer

type OrderServiceServer interface {
	GetOrderInfo(context.Context, *OrderRequest) (*OrderInfo, error)
	// contains filtered or unexported methods
}

OrderServiceServer is the server API for OrderService service. All implementations must embed UnimplementedOrderServiceServer for forward compatibility

type UnimplementedOrder2ServiceServer

type UnimplementedOrder2ServiceServer struct {
}

UnimplementedOrder2ServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrder2ServiceServer) GetOrderInfo

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
}

UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderServiceServer) GetOrderInfo

type UnsafeOrder2ServiceServer added in v0.0.6

type UnsafeOrder2ServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeOrder2ServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to Order2ServiceServer will result in compilation errors.

type UnsafeOrderServiceServer added in v0.0.6

type UnsafeOrderServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeOrderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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