api

package module
v0.0.0-...-886de3c Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: GPL-3.0 Imports: 16 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_order_proto protoreflect.FileDescriptor
View Source
var OrderService_ServiceDesc = grpc_go.ServiceDesc{
	ServiceName: "com.jeongen.fastmall.order.OrderService",
	HandlerType: (*OrderServiceServer)(nil),
	Methods: []grpc_go.MethodDesc{
		{
			MethodName: "GetOrderDetail",
			Handler:    _OrderService_GetOrderDetail_Handler,
		},
	},
	Streams:  []grpc_go.StreamDesc{},
	Metadata: "order.proto",
}

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

Functions

func RegisterOrderServiceServer

func RegisterOrderServiceServer(s grpc_go.ServiceRegistrar, srv OrderServiceServer)

Types

type GetOrderDetailRequest

type GetOrderDetailRequest struct {
	OrderId int64 `protobuf:"varint,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrderDetailRequest) Descriptor deprecated

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

Deprecated: Use GetOrderDetailRequest.ProtoReflect.Descriptor instead.

func (*GetOrderDetailRequest) GetOrderId

func (x *GetOrderDetailRequest) GetOrderId() int64

func (*GetOrderDetailRequest) ProtoMessage

func (*GetOrderDetailRequest) ProtoMessage()

func (*GetOrderDetailRequest) ProtoReflect

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

func (*GetOrderDetailRequest) Reset

func (x *GetOrderDetailRequest) Reset()

func (*GetOrderDetailRequest) String

func (x *GetOrderDetailRequest) String() string

type GetOrderDetailResponse

type GetOrderDetailResponse struct {
	OrderId int64 `protobuf:"varint,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrderDetailResponse) Descriptor deprecated

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

Deprecated: Use GetOrderDetailResponse.ProtoReflect.Descriptor instead.

func (*GetOrderDetailResponse) GetOrderId

func (x *GetOrderDetailResponse) GetOrderId() int64

func (*GetOrderDetailResponse) ProtoMessage

func (*GetOrderDetailResponse) ProtoMessage()

func (*GetOrderDetailResponse) ProtoReflect

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

func (*GetOrderDetailResponse) Reset

func (x *GetOrderDetailResponse) Reset()

func (*GetOrderDetailResponse) String

func (x *GetOrderDetailResponse) String() string

type OrderServiceClient

type OrderServiceClient interface {
	GetOrderDetail(ctx context.Context, in *GetOrderDetailRequest, opts ...grpc_go.CallOption) (*GetOrderDetailResponse, common.ErrorWithAttachment)
}

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.

func NewOrderServiceClient

func NewOrderServiceClient(cc *triple.TripleConn) OrderServiceClient

type OrderServiceClientImpl

type OrderServiceClientImpl struct {
	GetOrderDetail func(ctx context.Context, in *GetOrderDetailRequest) (*GetOrderDetailResponse, error)
}

func (*OrderServiceClientImpl) GetDubboStub

func (*OrderServiceClientImpl) XXX_InterfaceName

func (c *OrderServiceClientImpl) XXX_InterfaceName() string

type OrderServiceServer

type OrderServiceServer interface {
	GetOrderDetail(context.Context, *GetOrderDetailRequest) (*GetOrderDetailResponse, error)
	// contains filtered or unexported methods
}

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

type UnimplementedOrderServiceServer

type UnimplementedOrderServiceServer struct {
	// contains filtered or unexported fields
}

UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOrderServiceServer) GetOrderDetail

func (*UnimplementedOrderServiceServer) XXX_GetProxyImpl

func (s *UnimplementedOrderServiceServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedOrderServiceServer) XXX_InterfaceName

func (s *UnimplementedOrderServiceServer) XXX_InterfaceName() string

func (*UnimplementedOrderServiceServer) XXX_ServiceDesc

func (s *UnimplementedOrderServiceServer) XXX_ServiceDesc() *grpc_go.ServiceDesc

func (*UnimplementedOrderServiceServer) XXX_SetProxyImpl

func (s *UnimplementedOrderServiceServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnsafeOrderServiceServer

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