flight

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*Info) XXX_DiscardUnknown added in v1.6.0

func (m *Info) XXX_DiscardUnknown()

func (*Info) XXX_Marshal added in v1.6.0

func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Info) XXX_Merge added in v1.6.0

func (dst *Info) XXX_Merge(src proto.Message)

func (*Info) XXX_Size added in v1.6.0

func (m *Info) XXX_Size() int

func (*Info) XXX_Unmarshal added in v1.6.0

func (m *Info) XXX_Unmarshal(b []byte) error

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