flight

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Overview

Package flight defines protobuf-formatted data as used by the airport example.

Package flight is a generated protocol buffer package.

It is generated from these files:

flight.proto

It has these top-level messages:

Info

Index

Constants

This section is empty.

Variables

View Source
var Status_name = map[int32]string{
	0: "arrival",
	1: "departure",
}
View Source
var Status_value = map[string]int32{
	"arrival":   0,
	"departure": 1,
}

Functions

This section is empty.

Types

type Info

type Info struct {
	Airline  string `protobuf:"bytes,1,opt,name=airline,proto3" json:"airline,omitempty"`
	Number   uint32 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	Status   Status `protobuf:"varint,3,opt,name=status,proto3,enum=flight.Status" json:"status,omitempty"`
	Priority uint32 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"`
}

func (*Info) Descriptor

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

func (*Info) GetAirline

func (m *Info) GetAirline() string

func (*Info) GetNumber

func (m *Info) GetNumber() uint32

func (*Info) GetPriority

func (m *Info) GetPriority() uint32

func (*Info) GetStatus

func (m *Info) GetStatus() Status

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) String

func (m *Info) String() string

type Status

type Status int32
const (
	Status_arrival   Status = 0
	Status_departure Status = 1
)

func (Status) EnumDescriptor

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

func (Status) String

func (x Status) String() string

Jump to

Keyboard shortcuts

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