v1

package
v0.0.0-...-4241208 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShippingServiceErrorReason_name = map[int32]string{
		0: "UNKNOWN_ERROR",
	}
	ShippingServiceErrorReason_value = map[string]int32{
		"UNKNOWN_ERROR": 0,
	}
)

Enum value maps for ShippingServiceErrorReason.

View Source
var File_v1_shipping_error_proto protoreflect.FileDescriptor
View Source
var File_v1_shipping_proto protoreflect.FileDescriptor
View Source
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 ErrorUnknownError(format string, args ...interface{}) *errors.Error

func IsUnknownError

func IsUnknownError(err error) bool

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

func (ShippingServiceErrorReason) EnumDescriptor deprecated

func (ShippingServiceErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use ShippingServiceErrorReason.Descriptor instead.

func (ShippingServiceErrorReason) Number

func (ShippingServiceErrorReason) String

func (ShippingServiceErrorReason) Type

type UnimplementedShippingServer

type UnimplementedShippingServer struct {
}

UnimplementedShippingServer must be embedded to have forward compatible implementations.

func (UnimplementedShippingServer) ShipOrder

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.

Jump to

Keyboard shortcuts

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