planetexpress

package
v0.0.0-...-d835143 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Crew_Member_name = map[int32]string{
		0: "leela",
		1: "Fry",
		2: "Bender",
	}
	Crew_Member_value = map[string]int32{
		"leela":  0,
		"Fry":    1,
		"Bender": 2,
	}
)

Enum value maps for Crew_Member.

View Source
var (
	Ship_FuelLevel_name = map[int32]string{
		0: "EMPTY",
		1: "LOW",
		2: "FULL",
	}
	Ship_FuelLevel_value = map[string]int32{
		"EMPTY": 0,
		"LOW":   1,
		"FULL":  2,
	}
)

Enum value maps for Ship_FuelLevel.

View Source
var File_delivery_proto protoreflect.FileDescriptor
View Source
var File_planet_express_service_proto protoreflect.FileDescriptor

Functions

func RegisterPlanetExpressServer

func RegisterPlanetExpressServer(s *grpc.Server, srv PlanetExpressServer)

Types

type Crew

type Crew struct {
	Member string            `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"`
	Status map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Crew) Descriptor deprecated

func (*Crew) Descriptor() ([]byte, []int)

Deprecated: Use Crew.ProtoReflect.Descriptor instead.

func (*Crew) GetMember

func (x *Crew) GetMember() string

func (*Crew) GetStatus

func (x *Crew) GetStatus() map[string]string

func (*Crew) ProtoMessage

func (*Crew) ProtoMessage()

func (*Crew) ProtoReflect

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

func (*Crew) Reset

func (x *Crew) Reset()

func (*Crew) String

func (x *Crew) String() string

type Crew_Member

type Crew_Member int32
const (
	Crew_leela  Crew_Member = 0
	Crew_Fry    Crew_Member = 1
	Crew_Bender Crew_Member = 2
)

func (Crew_Member) Descriptor

func (Crew_Member) Enum

func (x Crew_Member) Enum() *Crew_Member

func (Crew_Member) EnumDescriptor deprecated

func (Crew_Member) EnumDescriptor() ([]byte, []int)

Deprecated: Use Crew_Member.Descriptor instead.

func (Crew_Member) Number

func (x Crew_Member) Number() protoreflect.EnumNumber

func (Crew_Member) String

func (x Crew_Member) String() string

func (Crew_Member) Type

type DeliveryRequest

type DeliveryRequest struct {
	Item     string `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	Quantity int32  `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*DeliveryRequest) Descriptor deprecated

func (*DeliveryRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeliveryRequest.ProtoReflect.Descriptor instead.

func (*DeliveryRequest) GetItem

func (x *DeliveryRequest) GetItem() string

func (*DeliveryRequest) GetLocation

func (x *DeliveryRequest) GetLocation() string

func (*DeliveryRequest) GetQuantity

func (x *DeliveryRequest) GetQuantity() int32

func (*DeliveryRequest) ProtoMessage

func (*DeliveryRequest) ProtoMessage()

func (*DeliveryRequest) ProtoReflect

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

func (*DeliveryRequest) Reset

func (x *DeliveryRequest) Reset()

func (*DeliveryRequest) String

func (x *DeliveryRequest) String() string

type DeliveryResponse

type DeliveryResponse struct {
	Item      string `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	Delivered bool   `protobuf:"varint,2,opt,name=delivered,proto3" json:"delivered,omitempty"`
	// contains filtered or unexported fields
}

func (*DeliveryResponse) Descriptor deprecated

func (*DeliveryResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeliveryResponse.ProtoReflect.Descriptor instead.

func (*DeliveryResponse) GetDelivered

func (x *DeliveryResponse) GetDelivered() bool

func (*DeliveryResponse) GetItem

func (x *DeliveryResponse) GetItem() string

func (*DeliveryResponse) ProtoMessage

func (*DeliveryResponse) ProtoMessage()

func (*DeliveryResponse) ProtoReflect

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

func (*DeliveryResponse) Reset

func (x *DeliveryResponse) Reset()

func (*DeliveryResponse) String

func (x *DeliveryResponse) String() string

type GetCrewResponse

type GetCrewResponse struct {
	Crew []*Crew `protobuf:"bytes,1,rep,name=crew,proto3" json:"crew,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCrewResponse) Descriptor deprecated

func (*GetCrewResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCrewResponse.ProtoReflect.Descriptor instead.

func (*GetCrewResponse) GetCrew

func (x *GetCrewResponse) GetCrew() []*Crew

func (*GetCrewResponse) ProtoMessage

func (*GetCrewResponse) ProtoMessage()

func (*GetCrewResponse) ProtoReflect

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

func (*GetCrewResponse) Reset

func (x *GetCrewResponse) Reset()

func (*GetCrewResponse) String

func (x *GetCrewResponse) String() string

type GetDeliveryRequest

type GetDeliveryRequest struct {
	Delivery *DeliveryRequest `protobuf:"bytes,1,opt,name=delivery,proto3" json:"delivery,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeliveryRequest) Descriptor deprecated

func (*GetDeliveryRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDeliveryRequest.ProtoReflect.Descriptor instead.

func (*GetDeliveryRequest) GetDelivery

func (x *GetDeliveryRequest) GetDelivery() *DeliveryRequest

func (*GetDeliveryRequest) ProtoMessage

func (*GetDeliveryRequest) ProtoMessage()

func (*GetDeliveryRequest) ProtoReflect

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

func (*GetDeliveryRequest) Reset

func (x *GetDeliveryRequest) Reset()

func (*GetDeliveryRequest) String

func (x *GetDeliveryRequest) String() string

type GetDeliveryResponse

type GetDeliveryResponse struct {
	Delivery *DeliveryResponse `protobuf:"bytes,1,opt,name=delivery,proto3" json:"delivery,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeliveryResponse) Descriptor deprecated

func (*GetDeliveryResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDeliveryResponse.ProtoReflect.Descriptor instead.

func (*GetDeliveryResponse) GetDelivery

func (x *GetDeliveryResponse) GetDelivery() *DeliveryResponse

func (*GetDeliveryResponse) ProtoMessage

func (*GetDeliveryResponse) ProtoMessage()

func (*GetDeliveryResponse) ProtoReflect

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

func (*GetDeliveryResponse) Reset

func (x *GetDeliveryResponse) Reset()

func (*GetDeliveryResponse) String

func (x *GetDeliveryResponse) String() string

type GetShipResponse

type GetShipResponse struct {
	Ship *Ship `protobuf:"bytes,1,opt,name=ship,proto3" json:"ship,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShipResponse) Descriptor deprecated

func (*GetShipResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetShipResponse.ProtoReflect.Descriptor instead.

func (*GetShipResponse) GetShip

func (x *GetShipResponse) GetShip() *Ship

func (*GetShipResponse) ProtoMessage

func (*GetShipResponse) ProtoMessage()

func (*GetShipResponse) ProtoReflect

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

func (*GetShipResponse) Reset

func (x *GetShipResponse) Reset()

func (*GetShipResponse) String

func (x *GetShipResponse) String() string

type ListDeliveriesResponse

type ListDeliveriesResponse struct {
	List []*DeliveryResponse `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDeliveriesResponse) Descriptor deprecated

func (*ListDeliveriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDeliveriesResponse.ProtoReflect.Descriptor instead.

func (*ListDeliveriesResponse) GetList

func (x *ListDeliveriesResponse) GetList() []*DeliveryResponse

func (*ListDeliveriesResponse) ProtoMessage

func (*ListDeliveriesResponse) ProtoMessage()

func (*ListDeliveriesResponse) ProtoReflect

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

func (*ListDeliveriesResponse) Reset

func (x *ListDeliveriesResponse) Reset()

func (*ListDeliveriesResponse) String

func (x *ListDeliveriesResponse) String() string

type PlanetExpressClient

type PlanetExpressClient interface {
	GetShip(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetShipResponse, error)
	GetCrew(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetCrewResponse, error)
	ListDeliveries(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListDeliveriesResponse, error)
	GetDelivery(ctx context.Context, in *GetDeliveryRequest, opts ...grpc.CallOption) (*GetDeliveryResponse, error)
}

PlanetExpressClient is the client API for PlanetExpress service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type PlanetExpressServer

type PlanetExpressServer interface {
	GetShip(context.Context, *empty.Empty) (*GetShipResponse, error)
	GetCrew(context.Context, *empty.Empty) (*GetCrewResponse, error)
	ListDeliveries(context.Context, *empty.Empty) (*ListDeliveriesResponse, error)
	GetDelivery(context.Context, *GetDeliveryRequest) (*GetDeliveryResponse, error)
}

PlanetExpressServer is the server API for PlanetExpress service.

type Ship

type Ship struct {
	Name      string              `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Location  string              `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	FuelLevel Ship_FuelLevel      `protobuf:"varint,3,opt,name=fuel_level,json=fuelLevel,proto3,enum=planetexpress.Ship_FuelLevel" json:"fuel_level,omitempty"`
	Crew      []*Crew             `protobuf:"bytes,4,rep,name=crew,proto3" json:"crew,omitempty"`
	List      []*DeliveryResponse `protobuf:"bytes,5,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*Ship) Descriptor deprecated

func (*Ship) Descriptor() ([]byte, []int)

Deprecated: Use Ship.ProtoReflect.Descriptor instead.

func (*Ship) GetCrew

func (x *Ship) GetCrew() []*Crew

func (*Ship) GetFuelLevel

func (x *Ship) GetFuelLevel() Ship_FuelLevel

func (*Ship) GetList

func (x *Ship) GetList() []*DeliveryResponse

func (*Ship) GetLocation

func (x *Ship) GetLocation() string

func (*Ship) GetName

func (x *Ship) GetName() string

func (*Ship) ProtoMessage

func (*Ship) ProtoMessage()

func (*Ship) ProtoReflect

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

func (*Ship) Reset

func (x *Ship) Reset()

func (*Ship) String

func (x *Ship) String() string

type Ship_FuelLevel

type Ship_FuelLevel int32
const (
	Ship_EMPTY Ship_FuelLevel = 0
	Ship_LOW   Ship_FuelLevel = 1
	Ship_FULL  Ship_FuelLevel = 2
)

func (Ship_FuelLevel) Descriptor

func (Ship_FuelLevel) Enum

func (x Ship_FuelLevel) Enum() *Ship_FuelLevel

func (Ship_FuelLevel) EnumDescriptor deprecated

func (Ship_FuelLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use Ship_FuelLevel.Descriptor instead.

func (Ship_FuelLevel) Number

func (Ship_FuelLevel) String

func (x Ship_FuelLevel) String() string

func (Ship_FuelLevel) Type

type UnimplementedPlanetExpressServer

type UnimplementedPlanetExpressServer struct {
}

UnimplementedPlanetExpressServer can be embedded to have forward compatible implementations.

func (*UnimplementedPlanetExpressServer) GetCrew

func (*UnimplementedPlanetExpressServer) GetDelivery

func (*UnimplementedPlanetExpressServer) GetShip

func (*UnimplementedPlanetExpressServer) ListDeliveries

Jump to

Keyboard shortcuts

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