Documentation ¶
Index ¶
- Variables
- func NewShippingServiceEndpoints() []*api.Endpoint
- func RegisterShippingServiceHandler(s server.Server, hdlr ShippingServiceHandler, opts ...server.HandlerOption) error
- type Consignment
- func (*Consignment) Descriptor() ([]byte, []int)deprecated
- func (x *Consignment) GetContainers() []*Container
- func (x *Consignment) GetDescription() string
- func (x *Consignment) GetId() string
- func (x *Consignment) GetVesselId() string
- func (x *Consignment) GetWeight() int32
- func (*Consignment) ProtoMessage()
- func (x *Consignment) ProtoReflect() protoreflect.Message
- func (x *Consignment) Reset()
- func (x *Consignment) String() string
- type Container
- func (*Container) Descriptor() ([]byte, []int)deprecated
- func (x *Container) GetCustomerId() string
- func (x *Container) GetId() string
- func (x *Container) GetOrigin() string
- func (x *Container) GetUserId() string
- func (*Container) ProtoMessage()
- func (x *Container) ProtoReflect() protoreflect.Message
- func (x *Container) Reset()
- func (x *Container) String() string
- type GetRequest
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetConsignment() *Consignment
- func (x *Response) GetConsignments() []*Consignment
- func (x *Response) GetCreated() bool
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type ShippingService
- type ShippingServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_consignment_consignment_proto protoreflect.FileDescriptor
Functions ¶
func RegisterShippingServiceHandler ¶
func RegisterShippingServiceHandler(s server.Server, hdlr ShippingServiceHandler, opts ...server.HandlerOption) error
Types ¶
type Consignment ¶
type Consignment struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Weight int32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"` Containers []*Container `protobuf:"bytes,4,rep,name=containers,proto3" json:"containers,omitempty"` VesselId string `protobuf:"bytes,5,opt,name=vessel_id,json=vesselId,proto3" json:"vessel_id,omitempty"` // contains filtered or unexported fields }
func (*Consignment) Descriptor
deprecated
func (*Consignment) Descriptor() ([]byte, []int)
Deprecated: Use Consignment.ProtoReflect.Descriptor instead.
func (*Consignment) GetContainers ¶
func (x *Consignment) GetContainers() []*Container
func (*Consignment) GetDescription ¶
func (x *Consignment) GetDescription() string
func (*Consignment) GetId ¶
func (x *Consignment) GetId() string
func (*Consignment) GetVesselId ¶
func (x *Consignment) GetVesselId() string
func (*Consignment) GetWeight ¶
func (x *Consignment) GetWeight() int32
func (*Consignment) ProtoMessage ¶
func (*Consignment) ProtoMessage()
func (*Consignment) ProtoReflect ¶
func (x *Consignment) ProtoReflect() protoreflect.Message
func (*Consignment) Reset ¶
func (x *Consignment) Reset()
func (*Consignment) String ¶
func (x *Consignment) String() string
type Container ¶
type Container struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` Origin string `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"` UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*Container) Descriptor
deprecated
func (*Container) GetCustomerId ¶
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
func (*Container) ProtoReflect ¶
func (x *Container) ProtoReflect() protoreflect.Message
type GetRequest ¶
type GetRequest struct {
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type Response ¶
type Response struct { Created bool `protobuf:"varint,1,opt,name=created,proto3" json:"created,omitempty"` Consignment *Consignment `protobuf:"bytes,2,opt,name=consignment,proto3" json:"consignment,omitempty"` Consignments []*Consignment `protobuf:"bytes,3,rep,name=consignments,proto3" json:"consignments,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetConsignment ¶
func (x *Response) GetConsignment() *Consignment
func (*Response) GetConsignments ¶
func (x *Response) GetConsignments() []*Consignment
func (*Response) GetCreated ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ShippingService ¶
type ShippingService interface { CreateConsignment(ctx context.Context, in *Consignment, opts ...client.CallOption) (*Response, error) GetConsignments(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*Response, error) }
func NewShippingService ¶
func NewShippingService(name string, c client.Client) ShippingService
type ShippingServiceHandler ¶
type ShippingServiceHandler interface { CreateConsignment(context.Context, *Consignment, *Response) error GetConsignments(context.Context, *GetRequest, *Response) error }
Click to show internal directories.
Click to hide internal directories.