Documentation ¶
Index ¶
- func RegisterVesselServiceHandler(s server.Server, hdlr VesselServiceHandler, opts ...server.HandlerOption)
- type CreateResp
- func (*CreateResp) Descriptor() ([]byte, []int)
- func (m *CreateResp) GetSuccess() bool
- func (*CreateResp) ProtoMessage()
- func (m *CreateResp) Reset()
- func (m *CreateResp) String() string
- func (m *CreateResp) XXX_DiscardUnknown()
- func (m *CreateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResp) XXX_Merge(src proto.Message)
- func (m *CreateResp) XXX_Size() int
- func (m *CreateResp) XXX_Unmarshal(b []byte) error
- type FindAvailableResp
- func (*FindAvailableResp) Descriptor() ([]byte, []int)
- func (m *FindAvailableResp) GetVessels() []*Vessel
- func (*FindAvailableResp) ProtoMessage()
- func (m *FindAvailableResp) Reset()
- func (m *FindAvailableResp) String() string
- func (m *FindAvailableResp) XXX_DiscardUnknown()
- func (m *FindAvailableResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindAvailableResp) XXX_Merge(src proto.Message)
- func (m *FindAvailableResp) XXX_Size() int
- func (m *FindAvailableResp) XXX_Unmarshal(b []byte) error
- type Specification
- func (*Specification) Descriptor() ([]byte, []int)
- func (m *Specification) GetWeight() 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) GetOwerId() 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 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) GetAvailable ¶
func (*Vessel) GetCapacity ¶
func (*Vessel) GetMaxWeight ¶
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) 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 }
Click to show internal directories.
Click to hide internal directories.