consignment

package
v0.0.0-...-9feca65 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 9 Imported by: 1

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetCustomerId

func (x *Container) GetCustomerId() string

func (*Container) GetId

func (x *Container) GetId() string

func (*Container) GetOrigin

func (x *Container) GetOrigin() string

func (*Container) GetUserId

func (x *Container) GetUserId() string

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect

func (x *Container) ProtoReflect() protoreflect.Message

func (*Container) Reset

func (x *Container) Reset()

func (*Container) String

func (x *Container) String() string

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.

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

Jump to

Keyboard shortcuts

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