vessel

package
v0.0.0-...-939bd3a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_vessel_vessel_proto protoreflect.FileDescriptor

Functions

func NewVesselServiceEndpoints

func NewVesselServiceEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCreated

func (x *Response) GetCreated() bool

func (*Response) GetVessel

func (x *Response) GetVessel() *Vessel

func (*Response) GetVessels

func (x *Response) GetVessels() []*Vessel

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Vessel.ProtoReflect.Descriptor instead.

func (*Vessel) GetAvailable

func (x *Vessel) GetAvailable() bool

func (*Vessel) GetCapacity

func (x *Vessel) GetCapacity() int32

func (*Vessel) GetId

func (x *Vessel) GetId() string

func (*Vessel) GetMaxWeight

func (x *Vessel) GetMaxWeight() int32

func (*Vessel) GetName

func (x *Vessel) GetName() string

func (*Vessel) GetOwnerId

func (x *Vessel) GetOwnerId() string

func (*Vessel) ProtoMessage

func (*Vessel) ProtoMessage()

func (*Vessel) ProtoReflect

func (x *Vessel) ProtoReflect() protoreflect.Message

func (*Vessel) Reset

func (x *Vessel) Reset()

func (*Vessel) String

func (x *Vessel) String() string

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

type VesselServiceHandler

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

Jump to

Keyboard shortcuts

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