Documentation
¶
Overview ¶
Package vessel is a generated protocol buffer package.
It is generated from these files:
proto/vessel/vessel.proto
It has these top-level messages:
Vessel Specification Response
Index ¶
- func NewVesselServiceEndpoints() []*api.Endpoint
- func RegisterVesselServiceHandler(s server.Server, hdlr VesselServiceHandler, opts ...server.HandlerOption) error
- type Response
- type Specification
- type Vessel
- func (*Vessel) Descriptor() ([]byte, []int)
- func (m *Vessel) GetAvailable() bool
- func (m *Vessel) GetCapacity() int32
- func (m *Vessel) GetId() string
- func (m *Vessel) GetMaxWeight() int32
- func (m *Vessel) GetName() string
- func (m *Vessel) GetOwnerId() string
- func (*Vessel) ProtoMessage()
- func (m *Vessel) Reset()
- func (m *Vessel) String() string
- type VesselService
- type VesselServiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterVesselServiceHandler ¶
func RegisterVesselServiceHandler(s server.Server, hdlr VesselServiceHandler, opts ...server.HandlerOption) error
Types ¶
type Response ¶
type Response struct { Vessel *Vessel `protobuf:"bytes,1,opt,name=vessel" json:"vessel,omitempty"` Vessels []*Vessel `protobuf:"bytes,2,rep,name=vessels" json:"vessels,omitempty"` Created bool `protobuf:"varint,3,opt,name=created" json:"created,omitempty"` }
func (*Response) Descriptor ¶
func (*Response) GetCreated ¶
func (*Response) GetVessels ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type Specification ¶
type Specification struct { Capacity int32 `protobuf:"varint,1,opt,name=capacity" json:"capacity,omitempty"` MaxWeight int32 `protobuf:"varint,2,opt,name=max_weight,json=maxWeight" json:"max_weight,omitempty"` }
func (*Specification) Descriptor ¶
func (*Specification) Descriptor() ([]byte, []int)
func (*Specification) GetCapacity ¶
func (m *Specification) GetCapacity() int32
func (*Specification) GetMaxWeight ¶
func (m *Specification) GetMaxWeight() int32
func (*Specification) ProtoMessage ¶
func (*Specification) ProtoMessage()
func (*Specification) Reset ¶
func (m *Specification) Reset()
func (*Specification) String ¶
func (m *Specification) String() string
type Vessel ¶
type Vessel struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Capacity int32 `protobuf:"varint,2,opt,name=capacity" json:"capacity,omitempty"` MaxWeight int32 `protobuf:"varint,3,opt,name=max_weight,json=maxWeight" json:"max_weight,omitempty"` Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` Available bool `protobuf:"varint,5,opt,name=available" json:"available,omitempty"` OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId" json:"owner_id,omitempty"` }
func (*Vessel) Descriptor ¶
func (*Vessel) GetAvailable ¶
func (*Vessel) GetCapacity ¶
func (*Vessel) GetMaxWeight ¶
func (*Vessel) GetOwnerId ¶
func (*Vessel) ProtoMessage ¶
func (*Vessel) ProtoMessage()
type VesselService ¶
type VesselService interface { FindAvailable(ctx context.Context, in *Specification, opts ...client.CallOption) (*Response, error) Create(ctx context.Context, in *Vessel, opts ...client.CallOption) (*Response, error) }
func NewVesselService ¶
func NewVesselService(name string, c client.Client) VesselService
Click to show internal directories.
Click to hide internal directories.