shippy_service_vessel

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 RegisterVesselServiceHandler

func RegisterVesselServiceHandler(s server.Server, hdlr VesselServiceHandler, opts ...server.HandlerOption)

Types

type CreateResp

type CreateResp struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateResp) Descriptor

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

func (*CreateResp) GetSuccess

func (m *CreateResp) GetSuccess() bool

func (*CreateResp) ProtoMessage

func (*CreateResp) ProtoMessage()

func (*CreateResp) Reset

func (m *CreateResp) Reset()

func (*CreateResp) String

func (m *CreateResp) String() string

func (*CreateResp) XXX_DiscardUnknown

func (m *CreateResp) XXX_DiscardUnknown()

func (*CreateResp) XXX_Marshal

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

func (*CreateResp) XXX_Merge

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

func (*CreateResp) XXX_Size

func (m *CreateResp) XXX_Size() int

func (*CreateResp) XXX_Unmarshal

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

type FindAvailableResp

type FindAvailableResp struct {
	Vessels              []*Vessel `protobuf:"bytes,1,rep,name=vessels,proto3" json:"vessels,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*FindAvailableResp) Descriptor

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

func (*FindAvailableResp) GetVessels

func (m *FindAvailableResp) GetVessels() []*Vessel

func (*FindAvailableResp) ProtoMessage

func (*FindAvailableResp) ProtoMessage()

func (*FindAvailableResp) Reset

func (m *FindAvailableResp) Reset()

func (*FindAvailableResp) String

func (m *FindAvailableResp) String() string

func (*FindAvailableResp) XXX_DiscardUnknown

func (m *FindAvailableResp) XXX_DiscardUnknown()

func (*FindAvailableResp) XXX_Marshal

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

func (*FindAvailableResp) XXX_Merge

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

func (*FindAvailableResp) XXX_Size

func (m *FindAvailableResp) XXX_Size() int

func (*FindAvailableResp) XXX_Unmarshal

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

type Specification

type Specification struct {
	Weight               int32    `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Specification) Descriptor

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

func (*Specification) GetWeight

func (m *Specification) GetWeight() int32

func (*Specification) ProtoMessage

func (*Specification) ProtoMessage()

func (*Specification) Reset

func (m *Specification) Reset()

func (*Specification) String

func (m *Specification) String() string

func (*Specification) XXX_DiscardUnknown

func (m *Specification) XXX_DiscardUnknown()

func (*Specification) XXX_Marshal

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

func (*Specification) XXX_Merge

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

func (*Specification) XXX_Size

func (m *Specification) XXX_Size() int

func (*Specification) XXX_Unmarshal

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

type Vessel

type Vessel struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Capacity             int32    `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"`
	MaxWeight            int32    `protobuf:"varint,3,opt,name=max_weight,json=maxWeight,proto3" json:"max_weight,omitempty"`
	Name                 string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Available            bool     `protobuf:"varint,5,opt,name=available,proto3" json:"available,omitempty"`
	OwerId               string   `protobuf:"bytes,6,opt,name=ower_id,json=owerId,proto3" json:"ower_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Vessel) Descriptor

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

func (*Vessel) GetAvailable

func (m *Vessel) GetAvailable() bool

func (*Vessel) GetCapacity

func (m *Vessel) GetCapacity() int32

func (*Vessel) GetId

func (m *Vessel) GetId() string

func (*Vessel) GetMaxWeight

func (m *Vessel) GetMaxWeight() int32

func (*Vessel) GetName

func (m *Vessel) GetName() string

func (*Vessel) GetOwerId

func (m *Vessel) GetOwerId() string

func (*Vessel) ProtoMessage

func (*Vessel) ProtoMessage()

func (*Vessel) Reset

func (m *Vessel) Reset()

func (*Vessel) String

func (m *Vessel) String() string

func (*Vessel) XXX_DiscardUnknown

func (m *Vessel) XXX_DiscardUnknown()

func (*Vessel) XXX_Marshal

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

func (*Vessel) XXX_Merge

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

func (*Vessel) XXX_Size

func (m *Vessel) XXX_Size() int

func (*Vessel) XXX_Unmarshal

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

type VesselService

type VesselService struct {
	VesselServiceHandler
}

func (*VesselService) Create

func (h *VesselService) Create(ctx context.Context, in *Vessel, out *CreateResp) error

func (*VesselService) FindAvailable

func (h *VesselService) FindAvailable(ctx context.Context, in *Specification, out *FindAvailableResp) error

type VesselServiceClient

type VesselServiceClient interface {
	Create(ctx context.Context, in *Vessel, opts ...client.CallOption) (*CreateResp, error)
	FindAvailable(ctx context.Context, in *Specification, opts ...client.CallOption) (*FindAvailableResp, error)
}

func NewVesselServiceClient

func NewVesselServiceClient(serviceName string, c client.Client) VesselServiceClient

type VesselServiceHandler

type VesselServiceHandler interface {
	Create(context.Context, *Vessel, *CreateResp) error
	FindAvailable(context.Context, *Specification, *FindAvailableResp) error
}

Jump to

Keyboard shortcuts

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