Documentation ¶
Index ¶
- Variables
- func RegisterShippingServiceServer(s *grpc.Server, srv ShippingServiceServer)
- 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 CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetConsignment() *Consignment
- func (x *CreateResponse) GetCreated() bool
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- type GetAllRequest
- type GetAllResponse
- type ShippingServiceClient
- type ShippingServiceServer
- type UnimplementedShippingServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_consignment_consignment_proto protoreflect.FileDescriptor
Functions ¶
func RegisterShippingServiceServer ¶
func RegisterShippingServiceServer(s *grpc.Server, srv ShippingServiceServer)
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 CreateResponse ¶
type CreateResponse 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"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetConsignment ¶
func (x *CreateResponse) GetConsignment() *Consignment
func (*CreateResponse) GetCreated ¶
func (x *CreateResponse) GetCreated() bool
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type GetAllRequest ¶
type GetAllRequest struct {
// contains filtered or unexported fields
}
func (*GetAllRequest) Descriptor
deprecated
func (*GetAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.
func (*GetAllRequest) ProtoMessage ¶
func (*GetAllRequest) ProtoMessage()
func (*GetAllRequest) ProtoReflect ¶
func (x *GetAllRequest) ProtoReflect() protoreflect.Message
func (*GetAllRequest) Reset ¶
func (x *GetAllRequest) Reset()
func (*GetAllRequest) String ¶
func (x *GetAllRequest) String() string
type GetAllResponse ¶
type GetAllResponse struct { Consignments []*Consignment `protobuf:"bytes,1,rep,name=consignments,proto3" json:"consignments,omitempty"` // contains filtered or unexported fields }
func (*GetAllResponse) Descriptor
deprecated
func (*GetAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.
func (*GetAllResponse) GetConsignments ¶
func (x *GetAllResponse) GetConsignments() []*Consignment
func (*GetAllResponse) ProtoMessage ¶
func (*GetAllResponse) ProtoMessage()
func (*GetAllResponse) ProtoReflect ¶
func (x *GetAllResponse) ProtoReflect() protoreflect.Message
func (*GetAllResponse) Reset ¶
func (x *GetAllResponse) Reset()
func (*GetAllResponse) String ¶
func (x *GetAllResponse) String() string
type ShippingServiceClient ¶
type ShippingServiceClient interface { CreateConsignment(ctx context.Context, in *Consignment, opts ...grpc.CallOption) (*CreateResponse, error) GetConsignments(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error) }
ShippingServiceClient is the client API for ShippingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewShippingServiceClient ¶
func NewShippingServiceClient(cc grpc.ClientConnInterface) ShippingServiceClient
type ShippingServiceServer ¶
type ShippingServiceServer interface { CreateConsignment(context.Context, *Consignment) (*CreateResponse, error) GetConsignments(context.Context, *GetAllRequest) (*GetAllResponse, error) }
ShippingServiceServer is the server API for ShippingService service.
type UnimplementedShippingServiceServer ¶
type UnimplementedShippingServiceServer struct { }
UnimplementedShippingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedShippingServiceServer) CreateConsignment ¶
func (*UnimplementedShippingServiceServer) CreateConsignment(context.Context, *Consignment) (*CreateResponse, error)
func (*UnimplementedShippingServiceServer) GetConsignments ¶
func (*UnimplementedShippingServiceServer) GetConsignments(context.Context, *GetAllRequest) (*GetAllResponse, error)
Click to show internal directories.
Click to hide internal directories.