Documentation ¶
Index ¶
- Variables
- func RegisterOrderHTTPServer(s *http.Server, srv OrderHTTPServer)
- func RegisterOrderServer(s grpc.ServiceRegistrar, srv OrderServer)
- type CreateOrderReply
- type CreateOrderRequest
- func (*CreateOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderRequest) GetAmount() int64
- func (x *CreateOrderRequest) GetGid() int64
- func (*CreateOrderRequest) ProtoMessage()
- func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrderRequest) Reset()
- func (x *CreateOrderRequest) String() string
- type CreateSeckillOrderReply
- func (*CreateSeckillOrderReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSeckillOrderReply) GetDtmResult() string
- func (*CreateSeckillOrderReply) ProtoMessage()
- func (x *CreateSeckillOrderReply) ProtoReflect() protoreflect.Message
- func (x *CreateSeckillOrderReply) Reset()
- func (x *CreateSeckillOrderReply) String() string
- type CreateSeckillOrderRequest
- func (*CreateSeckillOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSeckillOrderRequest) GetAmount() int64
- func (x *CreateSeckillOrderRequest) GetGid() int64
- func (*CreateSeckillOrderRequest) ProtoMessage()
- func (x *CreateSeckillOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSeckillOrderRequest) Reset()
- func (x *CreateSeckillOrderRequest) String() string
- type DeleteOrderReply
- type DeleteOrderRequest
- type GetOrderReply
- type GetOrderRequest
- type ListOrderReply
- type ListOrderRequest
- type OrderClient
- type OrderHTTPClient
- type OrderHTTPClientImpl
- func (c *OrderHTTPClientImpl) CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...http.CallOption) (*CreateOrderReply, error)
- func (c *OrderHTTPClientImpl) CreateSeckillOrder(ctx context.Context, in *CreateSeckillOrderRequest, opts ...http.CallOption) (*CreateSeckillOrderReply, error)
- func (c *OrderHTTPClientImpl) CreateSeckillOrderCancel(ctx context.Context, in *CreateSeckillOrderRequest, opts ...http.CallOption) (*CreateSeckillOrderReply, error)
- func (c *OrderHTTPClientImpl) CreateSeckillOrderConfirm(ctx context.Context, in *CreateSeckillOrderRequest, opts ...http.CallOption) (*CreateSeckillOrderReply, error)
- func (c *OrderHTTPClientImpl) CreateSeckillOrderTry(ctx context.Context, in *CreateSeckillOrderRequest, opts ...http.CallOption) (*CreateSeckillOrderReply, error)
- type OrderHTTPServer
- type OrderServer
- type UnimplementedOrderServer
- func (UnimplementedOrderServer) CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderReply, error)
- func (UnimplementedOrderServer) CreateSeckillOrder(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error)
- func (UnimplementedOrderServer) CreateSeckillOrderCancel(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error)
- func (UnimplementedOrderServer) CreateSeckillOrderConfirm(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error)
- func (UnimplementedOrderServer) CreateSeckillOrderTry(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error)
- func (UnimplementedOrderServer) DeleteOrder(context.Context, *DeleteOrderRequest) (*DeleteOrderReply, error)
- func (UnimplementedOrderServer) GetOrder(context.Context, *GetOrderRequest) (*GetOrderReply, error)
- func (UnimplementedOrderServer) ListOrder(context.Context, *ListOrderRequest) (*ListOrderReply, error)
- func (UnimplementedOrderServer) UpdateOrder(context.Context, *UpdateOrderRequest) (*UpdateOrderReply, error)
- type UnsafeOrderServer
- type UpdateOrderReply
- type UpdateOrderRequest
Constants ¶
This section is empty.
Variables ¶
var File_v1_order_proto protoreflect.FileDescriptor
var Order_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.order.service.v1.Order", HandlerType: (*OrderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrder", Handler: _Order_CreateOrder_Handler, }, { MethodName: "CreateSeckillOrder", Handler: _Order_CreateSeckillOrder_Handler, }, { MethodName: "CreateSeckillOrderTry", Handler: _Order_CreateSeckillOrderTry_Handler, }, { MethodName: "CreateSeckillOrderConfirm", Handler: _Order_CreateSeckillOrderConfirm_Handler, }, { MethodName: "CreateSeckillOrderCancel", Handler: _Order_CreateSeckillOrderCancel_Handler, }, { MethodName: "UpdateOrder", Handler: _Order_UpdateOrder_Handler, }, { MethodName: "DeleteOrder", Handler: _Order_DeleteOrder_Handler, }, { MethodName: "GetOrder", Handler: _Order_GetOrder_Handler, }, { MethodName: "ListOrder", Handler: _Order_ListOrder_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/order.proto", }
Order_ServiceDesc is the grpc.ServiceDesc for Order service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrderHTTPServer ¶
func RegisterOrderHTTPServer(s *http.Server, srv OrderHTTPServer)
func RegisterOrderServer ¶
func RegisterOrderServer(s grpc.ServiceRegistrar, srv OrderServer)
Types ¶
type CreateOrderReply ¶
type CreateOrderReply struct {
// contains filtered or unexported fields
}
func (*CreateOrderReply) Descriptor
deprecated
func (*CreateOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReply.ProtoReflect.Descriptor instead.
func (*CreateOrderReply) ProtoMessage ¶
func (*CreateOrderReply) ProtoMessage()
func (*CreateOrderReply) ProtoReflect ¶
func (x *CreateOrderReply) ProtoReflect() protoreflect.Message
func (*CreateOrderReply) Reset ¶
func (x *CreateOrderReply) Reset()
func (*CreateOrderReply) String ¶
func (x *CreateOrderReply) String() string
type CreateOrderRequest ¶
type CreateOrderRequest struct { Gid int64 `protobuf:"varint,1,opt,name=gid,proto3" json:"gid,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderRequest) Descriptor
deprecated
func (*CreateOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.
func (*CreateOrderRequest) GetAmount ¶
func (x *CreateOrderRequest) GetAmount() int64
func (*CreateOrderRequest) GetGid ¶
func (x *CreateOrderRequest) GetGid() int64
func (*CreateOrderRequest) ProtoMessage ¶
func (*CreateOrderRequest) ProtoMessage()
func (*CreateOrderRequest) ProtoReflect ¶
func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
func (*CreateOrderRequest) Reset ¶
func (x *CreateOrderRequest) Reset()
func (*CreateOrderRequest) String ¶
func (x *CreateOrderRequest) String() string
type CreateSeckillOrderReply ¶
type CreateSeckillOrderReply struct { DtmResult string `protobuf:"bytes,1,opt,name=dtm_result,json=dtmResult,proto3" json:"dtm_result,omitempty"` // contains filtered or unexported fields }
func (*CreateSeckillOrderReply) Descriptor
deprecated
func (*CreateSeckillOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateSeckillOrderReply.ProtoReflect.Descriptor instead.
func (*CreateSeckillOrderReply) GetDtmResult ¶
func (x *CreateSeckillOrderReply) GetDtmResult() string
func (*CreateSeckillOrderReply) ProtoMessage ¶
func (*CreateSeckillOrderReply) ProtoMessage()
func (*CreateSeckillOrderReply) ProtoReflect ¶
func (x *CreateSeckillOrderReply) ProtoReflect() protoreflect.Message
func (*CreateSeckillOrderReply) Reset ¶
func (x *CreateSeckillOrderReply) Reset()
func (*CreateSeckillOrderReply) String ¶
func (x *CreateSeckillOrderReply) String() string
type CreateSeckillOrderRequest ¶
type CreateSeckillOrderRequest struct { Gid int64 `protobuf:"varint,1,opt,name=gid,proto3" json:"gid,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*CreateSeckillOrderRequest) Descriptor
deprecated
func (*CreateSeckillOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSeckillOrderRequest.ProtoReflect.Descriptor instead.
func (*CreateSeckillOrderRequest) GetAmount ¶
func (x *CreateSeckillOrderRequest) GetAmount() int64
func (*CreateSeckillOrderRequest) GetGid ¶
func (x *CreateSeckillOrderRequest) GetGid() int64
func (*CreateSeckillOrderRequest) ProtoMessage ¶
func (*CreateSeckillOrderRequest) ProtoMessage()
func (*CreateSeckillOrderRequest) ProtoReflect ¶
func (x *CreateSeckillOrderRequest) ProtoReflect() protoreflect.Message
func (*CreateSeckillOrderRequest) Reset ¶
func (x *CreateSeckillOrderRequest) Reset()
func (*CreateSeckillOrderRequest) String ¶
func (x *CreateSeckillOrderRequest) String() string
type DeleteOrderReply ¶
type DeleteOrderReply struct {
// contains filtered or unexported fields
}
func (*DeleteOrderReply) Descriptor
deprecated
func (*DeleteOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrderReply.ProtoReflect.Descriptor instead.
func (*DeleteOrderReply) ProtoMessage ¶
func (*DeleteOrderReply) ProtoMessage()
func (*DeleteOrderReply) ProtoReflect ¶
func (x *DeleteOrderReply) ProtoReflect() protoreflect.Message
func (*DeleteOrderReply) Reset ¶
func (x *DeleteOrderReply) Reset()
func (*DeleteOrderReply) String ¶
func (x *DeleteOrderReply) String() string
type DeleteOrderRequest ¶
type DeleteOrderRequest struct {
// contains filtered or unexported fields
}
func (*DeleteOrderRequest) Descriptor
deprecated
func (*DeleteOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOrderRequest.ProtoReflect.Descriptor instead.
func (*DeleteOrderRequest) ProtoMessage ¶
func (*DeleteOrderRequest) ProtoMessage()
func (*DeleteOrderRequest) ProtoReflect ¶
func (x *DeleteOrderRequest) ProtoReflect() protoreflect.Message
func (*DeleteOrderRequest) Reset ¶
func (x *DeleteOrderRequest) Reset()
func (*DeleteOrderRequest) String ¶
func (x *DeleteOrderRequest) String() string
type GetOrderReply ¶
type GetOrderReply struct {
// contains filtered or unexported fields
}
func (*GetOrderReply) Descriptor
deprecated
func (*GetOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderReply.ProtoReflect.Descriptor instead.
func (*GetOrderReply) ProtoMessage ¶
func (*GetOrderReply) ProtoMessage()
func (*GetOrderReply) ProtoReflect ¶
func (x *GetOrderReply) ProtoReflect() protoreflect.Message
func (*GetOrderReply) Reset ¶
func (x *GetOrderReply) Reset()
func (*GetOrderReply) String ¶
func (x *GetOrderReply) String() string
type GetOrderRequest ¶
type GetOrderRequest struct {
// contains filtered or unexported fields
}
func (*GetOrderRequest) Descriptor
deprecated
func (*GetOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderRequest.ProtoReflect.Descriptor instead.
func (*GetOrderRequest) ProtoMessage ¶
func (*GetOrderRequest) ProtoMessage()
func (*GetOrderRequest) ProtoReflect ¶
func (x *GetOrderRequest) ProtoReflect() protoreflect.Message
func (*GetOrderRequest) Reset ¶
func (x *GetOrderRequest) Reset()
func (*GetOrderRequest) String ¶
func (x *GetOrderRequest) String() string
type ListOrderReply ¶
type ListOrderReply struct {
// contains filtered or unexported fields
}
func (*ListOrderReply) Descriptor
deprecated
func (*ListOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use ListOrderReply.ProtoReflect.Descriptor instead.
func (*ListOrderReply) ProtoMessage ¶
func (*ListOrderReply) ProtoMessage()
func (*ListOrderReply) ProtoReflect ¶
func (x *ListOrderReply) ProtoReflect() protoreflect.Message
func (*ListOrderReply) Reset ¶
func (x *ListOrderReply) Reset()
func (*ListOrderReply) String ¶
func (x *ListOrderReply) String() string
type ListOrderRequest ¶
type ListOrderRequest struct {
// contains filtered or unexported fields
}
func (*ListOrderRequest) Descriptor
deprecated
func (*ListOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrderRequest.ProtoReflect.Descriptor instead.
func (*ListOrderRequest) ProtoMessage ¶
func (*ListOrderRequest) ProtoMessage()
func (*ListOrderRequest) ProtoReflect ¶
func (x *ListOrderRequest) ProtoReflect() protoreflect.Message
func (*ListOrderRequest) Reset ¶
func (x *ListOrderRequest) Reset()
func (*ListOrderRequest) String ¶
func (x *ListOrderRequest) String() string
type OrderClient ¶
type OrderClient interface { CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderReply, error) CreateSeckillOrder(ctx context.Context, in *CreateSeckillOrderRequest, opts ...grpc.CallOption) (*CreateSeckillOrderReply, error) CreateSeckillOrderTry(ctx context.Context, in *CreateSeckillOrderRequest, opts ...grpc.CallOption) (*CreateSeckillOrderReply, error) CreateSeckillOrderConfirm(ctx context.Context, in *CreateSeckillOrderRequest, opts ...grpc.CallOption) (*CreateSeckillOrderReply, error) CreateSeckillOrderCancel(ctx context.Context, in *CreateSeckillOrderRequest, opts ...grpc.CallOption) (*CreateSeckillOrderReply, error) UpdateOrder(ctx context.Context, in *UpdateOrderRequest, opts ...grpc.CallOption) (*UpdateOrderReply, error) DeleteOrder(ctx context.Context, in *DeleteOrderRequest, opts ...grpc.CallOption) (*DeleteOrderReply, error) GetOrder(ctx context.Context, in *GetOrderRequest, opts ...grpc.CallOption) (*GetOrderReply, error) ListOrder(ctx context.Context, in *ListOrderRequest, opts ...grpc.CallOption) (*ListOrderReply, error) }
OrderClient is the client API for Order 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 NewOrderClient ¶
func NewOrderClient(cc grpc.ClientConnInterface) OrderClient
type OrderHTTPClient ¶
type OrderHTTPClient interface { CreateOrder(ctx context.Context, req *CreateOrderRequest, opts ...http.CallOption) (rsp *CreateOrderReply, err error) CreateSeckillOrder(ctx context.Context, req *CreateSeckillOrderRequest, opts ...http.CallOption) (rsp *CreateSeckillOrderReply, err error) CreateSeckillOrderCancel(ctx context.Context, req *CreateSeckillOrderRequest, opts ...http.CallOption) (rsp *CreateSeckillOrderReply, err error) CreateSeckillOrderConfirm(ctx context.Context, req *CreateSeckillOrderRequest, opts ...http.CallOption) (rsp *CreateSeckillOrderReply, err error) CreateSeckillOrderTry(ctx context.Context, req *CreateSeckillOrderRequest, opts ...http.CallOption) (rsp *CreateSeckillOrderReply, err error) }
func NewOrderHTTPClient ¶
func NewOrderHTTPClient(client *http.Client) OrderHTTPClient
type OrderHTTPClientImpl ¶
type OrderHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*OrderHTTPClientImpl) CreateOrder ¶
func (c *OrderHTTPClientImpl) CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...http.CallOption) (*CreateOrderReply, error)
func (*OrderHTTPClientImpl) CreateSeckillOrder ¶
func (c *OrderHTTPClientImpl) CreateSeckillOrder(ctx context.Context, in *CreateSeckillOrderRequest, opts ...http.CallOption) (*CreateSeckillOrderReply, error)
func (*OrderHTTPClientImpl) CreateSeckillOrderCancel ¶
func (c *OrderHTTPClientImpl) CreateSeckillOrderCancel(ctx context.Context, in *CreateSeckillOrderRequest, opts ...http.CallOption) (*CreateSeckillOrderReply, error)
func (*OrderHTTPClientImpl) CreateSeckillOrderConfirm ¶
func (c *OrderHTTPClientImpl) CreateSeckillOrderConfirm(ctx context.Context, in *CreateSeckillOrderRequest, opts ...http.CallOption) (*CreateSeckillOrderReply, error)
func (*OrderHTTPClientImpl) CreateSeckillOrderTry ¶
func (c *OrderHTTPClientImpl) CreateSeckillOrderTry(ctx context.Context, in *CreateSeckillOrderRequest, opts ...http.CallOption) (*CreateSeckillOrderReply, error)
type OrderHTTPServer ¶
type OrderHTTPServer interface { CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderReply, error) CreateSeckillOrder(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error) CreateSeckillOrderCancel(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error) CreateSeckillOrderConfirm(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error) CreateSeckillOrderTry(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error) }
type OrderServer ¶
type OrderServer interface { CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderReply, error) CreateSeckillOrder(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error) CreateSeckillOrderTry(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error) CreateSeckillOrderConfirm(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error) CreateSeckillOrderCancel(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error) UpdateOrder(context.Context, *UpdateOrderRequest) (*UpdateOrderReply, error) DeleteOrder(context.Context, *DeleteOrderRequest) (*DeleteOrderReply, error) GetOrder(context.Context, *GetOrderRequest) (*GetOrderReply, error) ListOrder(context.Context, *ListOrderRequest) (*ListOrderReply, error) // contains filtered or unexported methods }
OrderServer is the server API for Order service. All implementations must embed UnimplementedOrderServer for forward compatibility
type UnimplementedOrderServer ¶
type UnimplementedOrderServer struct { }
UnimplementedOrderServer must be embedded to have forward compatible implementations.
func (UnimplementedOrderServer) CreateOrder ¶
func (UnimplementedOrderServer) CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderReply, error)
func (UnimplementedOrderServer) CreateSeckillOrder ¶
func (UnimplementedOrderServer) CreateSeckillOrder(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error)
func (UnimplementedOrderServer) CreateSeckillOrderCancel ¶
func (UnimplementedOrderServer) CreateSeckillOrderCancel(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error)
func (UnimplementedOrderServer) CreateSeckillOrderConfirm ¶
func (UnimplementedOrderServer) CreateSeckillOrderConfirm(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error)
func (UnimplementedOrderServer) CreateSeckillOrderTry ¶
func (UnimplementedOrderServer) CreateSeckillOrderTry(context.Context, *CreateSeckillOrderRequest) (*CreateSeckillOrderReply, error)
func (UnimplementedOrderServer) DeleteOrder ¶
func (UnimplementedOrderServer) DeleteOrder(context.Context, *DeleteOrderRequest) (*DeleteOrderReply, error)
func (UnimplementedOrderServer) GetOrder ¶
func (UnimplementedOrderServer) GetOrder(context.Context, *GetOrderRequest) (*GetOrderReply, error)
func (UnimplementedOrderServer) ListOrder ¶
func (UnimplementedOrderServer) ListOrder(context.Context, *ListOrderRequest) (*ListOrderReply, error)
func (UnimplementedOrderServer) UpdateOrder ¶
func (UnimplementedOrderServer) UpdateOrder(context.Context, *UpdateOrderRequest) (*UpdateOrderReply, error)
type UnsafeOrderServer ¶
type UnsafeOrderServer interface {
// contains filtered or unexported methods
}
UnsafeOrderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServer will result in compilation errors.
type UpdateOrderReply ¶
type UpdateOrderReply struct {
// contains filtered or unexported fields
}
func (*UpdateOrderReply) Descriptor
deprecated
func (*UpdateOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrderReply.ProtoReflect.Descriptor instead.
func (*UpdateOrderReply) ProtoMessage ¶
func (*UpdateOrderReply) ProtoMessage()
func (*UpdateOrderReply) ProtoReflect ¶
func (x *UpdateOrderReply) ProtoReflect() protoreflect.Message
func (*UpdateOrderReply) Reset ¶
func (x *UpdateOrderReply) Reset()
func (*UpdateOrderReply) String ¶
func (x *UpdateOrderReply) String() string
type UpdateOrderRequest ¶
type UpdateOrderRequest struct {
// contains filtered or unexported fields
}
func (*UpdateOrderRequest) Descriptor
deprecated
func (*UpdateOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrderRequest.ProtoReflect.Descriptor instead.
func (*UpdateOrderRequest) ProtoMessage ¶
func (*UpdateOrderRequest) ProtoMessage()
func (*UpdateOrderRequest) ProtoReflect ¶
func (x *UpdateOrderRequest) ProtoReflect() protoreflect.Message
func (*UpdateOrderRequest) Reset ¶
func (x *UpdateOrderRequest) Reset()
func (*UpdateOrderRequest) String ¶
func (x *UpdateOrderRequest) String() string