consignment

package
v0.0.0-...-df57de5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_consignment_consignment_proto protoreflect.FileDescriptor

Functions

func NewShippingServiceEndpoints

func NewShippingServiceEndpoints() []*api.Endpoint

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetConsignment

func (x *Response) GetConsignment() *Consignment

func (*Response) GetConsignments

func (x *Response) GetConsignments() []*Consignment

func (*Response) GetCreated

func (x *Response) GetCreated() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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
}

Jump to

Keyboard shortcuts

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