Documentation ¶
Index ¶
- func RegisterShippingServiceHandler(s server.Server, hdlr ShippingServiceHandler, opts ...server.HandlerOption)
- type Consignment
- func (*Consignment) Descriptor() ([]byte, []int)
- func (m *Consignment) GetContainers() []*Container
- func (m *Consignment) GetDescription() string
- func (m *Consignment) GetId() string
- func (m *Consignment) GetVesselId() string
- func (m *Consignment) GetWeight() int32
- func (*Consignment) ProtoMessage()
- func (m *Consignment) Reset()
- func (m *Consignment) String() string
- func (m *Consignment) XXX_DiscardUnknown()
- func (m *Consignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Consignment) XXX_Merge(src proto.Message)
- func (m *Consignment) XXX_Size() int
- func (m *Consignment) XXX_Unmarshal(b []byte) error
- type Container
- func (*Container) Descriptor() ([]byte, []int)
- func (m *Container) GetCustomerId() string
- func (m *Container) GetId() string
- func (m *Container) GetOrigin() string
- func (m *Container) GetUserId() string
- func (*Container) ProtoMessage()
- func (m *Container) Reset()
- func (m *Container) String() string
- func (m *Container) XXX_DiscardUnknown()
- func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Container) XXX_Merge(src proto.Message)
- func (m *Container) XXX_Size() int
- func (m *Container) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetConsignment() *Consignment
- func (m *Response) GetConsignments() []*Consignment
- func (m *Response) GetCreated() bool
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type ShippingService
- type ShippingServiceClient
- type ShippingServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterShippingServiceHandler ¶
func RegisterShippingServiceHandler(s server.Server, hdlr ShippingServiceHandler, opts ...server.HandlerOption)
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Consignment) Descriptor ¶
func (*Consignment) Descriptor() ([]byte, []int)
func (*Consignment) GetContainers ¶
func (m *Consignment) GetContainers() []*Container
func (*Consignment) GetDescription ¶
func (m *Consignment) GetDescription() string
func (*Consignment) GetId ¶
func (m *Consignment) GetId() string
func (*Consignment) GetVesselId ¶
func (m *Consignment) GetVesselId() string
func (*Consignment) GetWeight ¶
func (m *Consignment) GetWeight() int32
func (*Consignment) ProtoMessage ¶
func (*Consignment) ProtoMessage()
func (*Consignment) Reset ¶
func (m *Consignment) Reset()
func (*Consignment) String ¶
func (m *Consignment) String() string
func (*Consignment) XXX_DiscardUnknown ¶
func (m *Consignment) XXX_DiscardUnknown()
func (*Consignment) XXX_Marshal ¶
func (m *Consignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Consignment) XXX_Merge ¶
func (m *Consignment) XXX_Merge(src proto.Message)
func (*Consignment) XXX_Size ¶
func (m *Consignment) XXX_Size() int
func (*Consignment) XXX_Unmarshal ¶
func (m *Consignment) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Container) Descriptor ¶
func (*Container) GetCustomerId ¶
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
func (*Container) XXX_DiscardUnknown ¶
func (m *Container) XXX_DiscardUnknown()
func (*Container) XXX_Marshal ¶
func (*Container) XXX_Unmarshal ¶
type GetRequest ¶
type GetRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetConsignment ¶
func (m *Response) GetConsignment() *Consignment
func (*Response) GetConsignments ¶
func (m *Response) GetConsignments() []*Consignment
func (*Response) GetCreated ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type ShippingService ¶
type ShippingService struct {
ShippingServiceHandler
}
func (*ShippingService) CreateConsignment ¶
func (h *ShippingService) CreateConsignment(ctx context.Context, in *Consignment, out *Response) error
func (*ShippingService) GetConsignments ¶
func (h *ShippingService) GetConsignments(ctx context.Context, in *GetRequest, out *Response) error
type ShippingServiceClient ¶
type ShippingServiceClient interface { CreateConsignment(ctx context.Context, in *Consignment, opts ...client.CallOption) (*Response, error) GetConsignments(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*Response, error) }
func NewShippingServiceClient ¶
func NewShippingServiceClient(serviceName string, c client.Client) ShippingServiceClient
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.