vessel

package
v0.0.0-...-dd90425 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: MIT Imports: 7 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

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

func (*Response) GetCreated

func (m *Response) GetCreated() bool

func (*Response) GetVessel

func (m *Response) GetVessel() *Vessel

func (*Response) GetVessels

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

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

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

func (*Vessel) GetAvailable

func (m *Vessel) GetAvailable() bool

func (*Vessel) GetCapacity

func (m *Vessel) GetCapacity() int32

func (*Vessel) GetId

func (m *Vessel) GetId() string

func (*Vessel) GetMaxWeight

func (m *Vessel) GetMaxWeight() int32

func (*Vessel) GetName

func (m *Vessel) GetName() string

func (*Vessel) GetOwnerId

func (m *Vessel) GetOwnerId() string

func (*Vessel) ProtoMessage

func (*Vessel) ProtoMessage()

func (*Vessel) Reset

func (m *Vessel) Reset()

func (*Vessel) String

func (m *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