Documentation
¶
Index ¶
- Variables
- func NewVesselServiceEndpoints() []*api.Endpoint
- func RegisterVesselServiceHandler(s server.Server, hdlr VesselServiceHandler, opts ...server.HandlerOption) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCreated() bool
- func (x *Response) GetVessel() *Vessel
- func (x *Response) GetVessels() []*Vessel
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Specification
- func (*Specification) Descriptor() ([]byte, []int)deprecated
- func (x *Specification) GetCapacity() int32
- func (x *Specification) GetMaxWeight() int32
- func (*Specification) ProtoMessage()
- func (x *Specification) ProtoReflect() protoreflect.Message
- func (x *Specification) Reset()
- func (x *Specification) String() string
- type Vessel
- func (*Vessel) Descriptor() ([]byte, []int)deprecated
- func (x *Vessel) GetAvailable() bool
- func (x *Vessel) GetCapacity() int32
- func (x *Vessel) GetId() string
- func (x *Vessel) GetMaxWeight() int32
- func (x *Vessel) GetName() string
- func (x *Vessel) GetOwnerId() string
- func (*Vessel) ProtoMessage()
- func (x *Vessel) ProtoReflect() protoreflect.Message
- func (x *Vessel) Reset()
- func (x *Vessel) String() string
- type VesselService
- type VesselServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_vessel_vessel_proto protoreflect.FileDescriptor
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,proto3" json:"vessel,omitempty"` Vessels []*Vessel `protobuf:"bytes,2,rep,name=vessels,proto3" json:"vessels,omitempty"` Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetCreated ¶
func (*Response) GetVessels ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Specification ¶
type Specification struct { Capacity int32 `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"` MaxWeight int32 `protobuf:"varint,2,opt,name=max_weight,json=maxWeight,proto3" json:"max_weight,omitempty"` // contains filtered or unexported fields }
func (*Specification) Descriptor
deprecated
func (*Specification) Descriptor() ([]byte, []int)
Deprecated: Use Specification.ProtoReflect.Descriptor instead.
func (*Specification) GetCapacity ¶
func (x *Specification) GetCapacity() int32
func (*Specification) GetMaxWeight ¶
func (x *Specification) GetMaxWeight() int32
func (*Specification) ProtoMessage ¶
func (*Specification) ProtoMessage()
func (*Specification) ProtoReflect ¶
func (x *Specification) ProtoReflect() protoreflect.Message
func (*Specification) Reset ¶
func (x *Specification) Reset()
func (*Specification) String ¶
func (x *Specification) String() string
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"` OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // contains filtered or unexported fields }
func (*Vessel) Descriptor
deprecated
func (*Vessel) GetAvailable ¶
func (*Vessel) GetCapacity ¶
func (*Vessel) GetMaxWeight ¶
func (*Vessel) GetOwnerId ¶
func (*Vessel) ProtoMessage ¶
func (*Vessel) ProtoMessage()
func (*Vessel) ProtoReflect ¶
func (x *Vessel) ProtoReflect() protoreflect.Message
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.