Documentation ¶
Index ¶
- func RegisterVesselServiceHandler(s server.Server, hdlr VesselServiceHandler, opts ...server.HandlerOption)
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetVessel() *Vessel
- func (m *Response) GetVessels() []*Vessel
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Specification
- func (*Specification) Descriptor() ([]byte, []int)
- func (m *Specification) GetCapacity() int32
- func (m *Specification) GetMaxWeight() int32
- func (*Specification) ProtoMessage()
- func (m *Specification) Reset()
- func (m *Specification) String() string
- func (m *Specification) XXX_DiscardUnknown()
- func (m *Specification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Specification) XXX_Merge(src proto.Message)
- func (m *Specification) XXX_Size() int
- func (m *Specification) XXX_Unmarshal(b []byte) error
- 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
- func (m *Vessel) XXX_DiscardUnknown()
- func (m *Vessel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vessel) XXX_Merge(src proto.Message)
- func (m *Vessel) XXX_Size() int
- func (m *Vessel) XXX_Unmarshal(b []byte) error
- type VesselService
- type VesselServiceClient
- 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)
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetVessels ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
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"` OwnerId string `protobuf:"bytes,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Vessel) Descriptor ¶
func (*Vessel) GetAvailable ¶
func (*Vessel) GetCapacity ¶
func (*Vessel) GetMaxWeight ¶
func (*Vessel) GetOwnerId ¶
func (*Vessel) ProtoMessage ¶
func (*Vessel) ProtoMessage()
func (*Vessel) XXX_DiscardUnknown ¶
func (m *Vessel) XXX_DiscardUnknown()
func (*Vessel) XXX_Marshal ¶
func (*Vessel) XXX_Unmarshal ¶
type VesselService ¶
type VesselService struct {
VesselServiceHandler
}
func (*VesselService) FindAvailable ¶
func (h *VesselService) FindAvailable(ctx context.Context, in *Specification, out *Response) error
type VesselServiceClient ¶
type VesselServiceClient interface {
FindAvailable(ctx context.Context, in *Specification, opts ...client.CallOption) (*Response, error)
}
func NewVesselServiceClient ¶
func NewVesselServiceClient(serviceName string, c client.Client) VesselServiceClient
type VesselServiceHandler ¶
type VesselServiceHandler interface {
FindAvailable(context.Context, *Specification, *Response) error
}
Click to show internal directories.
Click to hide internal directories.