shippy_service_consignment

package
v0.0.0-...-629041b Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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"`
	VesselId             string   `protobuf:"bytes,4,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) 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 CreateConsignmentResponse

type CreateConsignmentResponse 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"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*CreateConsignmentResponse) Descriptor

func (*CreateConsignmentResponse) Descriptor() ([]byte, []int)

func (*CreateConsignmentResponse) GetConsignment

func (m *CreateConsignmentResponse) GetConsignment() *Consignment

func (*CreateConsignmentResponse) GetCreated

func (m *CreateConsignmentResponse) GetCreated() bool

func (*CreateConsignmentResponse) ProtoMessage

func (*CreateConsignmentResponse) ProtoMessage()

func (*CreateConsignmentResponse) Reset

func (m *CreateConsignmentResponse) Reset()

func (*CreateConsignmentResponse) String

func (m *CreateConsignmentResponse) String() string

func (*CreateConsignmentResponse) XXX_DiscardUnknown

func (m *CreateConsignmentResponse) XXX_DiscardUnknown()

func (*CreateConsignmentResponse) XXX_Marshal

func (m *CreateConsignmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateConsignmentResponse) XXX_Merge

func (m *CreateConsignmentResponse) XXX_Merge(src proto.Message)

func (*CreateConsignmentResponse) XXX_Size

func (m *CreateConsignmentResponse) XXX_Size() int

func (*CreateConsignmentResponse) XXX_Unmarshal

func (m *CreateConsignmentResponse) XXX_Unmarshal(b []byte) error

type GetConsignmentsResponse

type GetConsignmentsResponse struct {
	Consignments         []*Consignment `protobuf:"bytes,1,rep,name=consignments,proto3" json:"consignments,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*GetConsignmentsResponse) Descriptor

func (*GetConsignmentsResponse) Descriptor() ([]byte, []int)

func (*GetConsignmentsResponse) GetConsignments

func (m *GetConsignmentsResponse) GetConsignments() []*Consignment

func (*GetConsignmentsResponse) ProtoMessage

func (*GetConsignmentsResponse) ProtoMessage()

func (*GetConsignmentsResponse) Reset

func (m *GetConsignmentsResponse) Reset()

func (*GetConsignmentsResponse) String

func (m *GetConsignmentsResponse) String() string

func (*GetConsignmentsResponse) XXX_DiscardUnknown

func (m *GetConsignmentsResponse) XXX_DiscardUnknown()

func (*GetConsignmentsResponse) XXX_Marshal

func (m *GetConsignmentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetConsignmentsResponse) XXX_Merge

func (m *GetConsignmentsResponse) XXX_Merge(src proto.Message)

func (*GetConsignmentsResponse) XXX_Size

func (m *GetConsignmentsResponse) XXX_Size() int

func (*GetConsignmentsResponse) XXX_Unmarshal

func (m *GetConsignmentsResponse) XXX_Unmarshal(b []byte) error

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 ShippingService

type ShippingService struct {
	ShippingServiceHandler
}

func (*ShippingService) CreateConsignment

func (h *ShippingService) CreateConsignment(ctx context.Context, in *Consignment, out *CreateConsignmentResponse) error

func (*ShippingService) GetConsignments

func (h *ShippingService) GetConsignments(ctx context.Context, in *GetRequest, out *GetConsignmentsResponse) error

type ShippingServiceClient

type ShippingServiceClient interface {
	CreateConsignment(ctx context.Context, in *Consignment, opts ...client.CallOption) (*CreateConsignmentResponse, error)
	GetConsignments(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*GetConsignmentsResponse, error)
}

func NewShippingServiceClient

func NewShippingServiceClient(serviceName string, c client.Client) ShippingServiceClient

type ShippingServiceHandler

type ShippingServiceHandler interface {
	CreateConsignment(context.Context, *Consignment, *CreateConsignmentResponse) error
	GetConsignments(context.Context, *GetRequest, *GetConsignmentsResponse) error
}

Jump to

Keyboard shortcuts

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