Documentation ¶
Index ¶
- Variables
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func IsUnknownError(err error) bool
- func RegisterShippingServer(s grpc.ServiceRegistrar, srv ShippingServer)
- type ShipOrderReply
- type ShipOrderReq
- type ShippingClient
- type ShippingServer
- type ShippingServiceErrorReason
- func (ShippingServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ShippingServiceErrorReason) Enum() *ShippingServiceErrorReason
- func (ShippingServiceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ShippingServiceErrorReason) Number() protoreflect.EnumNumber
- func (x ShippingServiceErrorReason) String() string
- func (ShippingServiceErrorReason) Type() protoreflect.EnumType
- type UnimplementedShippingServer
- type UnsafeShippingServer
Constants ¶
This section is empty.
Variables ¶
var ( ShippingServiceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", } ShippingServiceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, } )
Enum value maps for ShippingServiceErrorReason.
var File_v1_shipping_error_proto protoreflect.FileDescriptor
var File_v1_shipping_proto protoreflect.FileDescriptor
var Shipping_ServiceDesc = grpc.ServiceDesc{ ServiceName: "shipping.service.v1.Shipping", HandlerType: (*ShippingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ShipOrder", Handler: _Shipping_ShipOrder_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/shipping.proto", }
Shipping_ServiceDesc is the grpc.ServiceDesc for Shipping service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorUnknownError ¶
func IsUnknownError ¶
func RegisterShippingServer ¶
func RegisterShippingServer(s grpc.ServiceRegistrar, srv ShippingServer)
Types ¶
type ShipOrderReply ¶
type ShipOrderReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ShipOrderReply) Descriptor
deprecated
func (*ShipOrderReply) Descriptor() ([]byte, []int)
Deprecated: Use ShipOrderReply.ProtoReflect.Descriptor instead.
func (*ShipOrderReply) GetId ¶
func (x *ShipOrderReply) GetId() int64
func (*ShipOrderReply) ProtoMessage ¶
func (*ShipOrderReply) ProtoMessage()
func (*ShipOrderReply) ProtoReflect ¶
func (x *ShipOrderReply) ProtoReflect() protoreflect.Message
func (*ShipOrderReply) Reset ¶
func (x *ShipOrderReply) Reset()
func (*ShipOrderReply) String ¶
func (x *ShipOrderReply) String() string
type ShipOrderReq ¶
type ShipOrderReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ShipOrderReq) Descriptor
deprecated
func (*ShipOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use ShipOrderReq.ProtoReflect.Descriptor instead.
func (*ShipOrderReq) GetId ¶
func (x *ShipOrderReq) GetId() int64
func (*ShipOrderReq) ProtoMessage ¶
func (*ShipOrderReq) ProtoMessage()
func (*ShipOrderReq) ProtoReflect ¶
func (x *ShipOrderReq) ProtoReflect() protoreflect.Message
func (*ShipOrderReq) Reset ¶
func (x *ShipOrderReq) Reset()
func (*ShipOrderReq) String ¶
func (x *ShipOrderReq) String() string
type ShippingClient ¶
type ShippingClient interface {
ShipOrder(ctx context.Context, in *ShipOrderReq, opts ...grpc.CallOption) (*ShipOrderReply, error)
}
ShippingClient is the client API for Shipping 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 NewShippingClient ¶
func NewShippingClient(cc grpc.ClientConnInterface) ShippingClient
type ShippingServer ¶
type ShippingServer interface { ShipOrder(context.Context, *ShipOrderReq) (*ShipOrderReply, error) // contains filtered or unexported methods }
ShippingServer is the server API for Shipping service. All implementations must embed UnimplementedShippingServer for forward compatibility
type ShippingServiceErrorReason ¶
type ShippingServiceErrorReason int32
const (
ShippingServiceErrorReason_UNKNOWN_ERROR ShippingServiceErrorReason = 0
)
func (ShippingServiceErrorReason) Descriptor ¶
func (ShippingServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ShippingServiceErrorReason) Enum ¶
func (x ShippingServiceErrorReason) Enum() *ShippingServiceErrorReason
func (ShippingServiceErrorReason) EnumDescriptor
deprecated
func (ShippingServiceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ShippingServiceErrorReason.Descriptor instead.
func (ShippingServiceErrorReason) Number ¶
func (x ShippingServiceErrorReason) Number() protoreflect.EnumNumber
func (ShippingServiceErrorReason) String ¶
func (x ShippingServiceErrorReason) String() string
func (ShippingServiceErrorReason) Type ¶
func (ShippingServiceErrorReason) Type() protoreflect.EnumType
type UnimplementedShippingServer ¶
type UnimplementedShippingServer struct { }
UnimplementedShippingServer must be embedded to have forward compatible implementations.
func (UnimplementedShippingServer) ShipOrder ¶
func (UnimplementedShippingServer) ShipOrder(context.Context, *ShipOrderReq) (*ShipOrderReply, error)
type UnsafeShippingServer ¶
type UnsafeShippingServer interface {
// contains filtered or unexported methods
}
UnsafeShippingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShippingServer will result in compilation errors.