Documentation ¶
Overview ¶
Package flight defines protobuf-formatted data as used by the airport example.
Index ¶
- Variables
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetAirline() string
- func (m *Info) GetNumber() uint32
- func (m *Info) GetPriority() uint32
- func (m *Info) GetStatus() Status
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) String() string
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type Status
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) GetAirline ¶
func (*Info) GetPriority ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) XXX_DiscardUnknown ¶ added in v1.6.0
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Marshal ¶ added in v1.6.0
func (*Info) XXX_Unmarshal ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.