Documentation
¶
Overview ¶
Package model is a generated protocol buffer package.
It is generated from these files:
packet.proto
It has these top-level messages:
Packet
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Packet_Type_name = map[int32]string{
0: "NEW",
1: "ACCEPT",
2: "DATA",
3: "CLOSE",
}
View Source
var Packet_Type_value = map[string]int32{
"NEW": 0,
"ACCEPT": 1,
"DATA": 2,
"CLOSE": 3,
}
Functions ¶
This section is empty.
Types ¶
type Packet ¶
type Packet struct {
Type Packet_Type `protobuf:"varint,1,opt,name=type,enum=model.Packet_Type" json:"type,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}
func (*Packet) Descriptor ¶
func (*Packet) MarshalBinary ¶
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) UnmarshalBinary ¶
type Packet_Type ¶
type Packet_Type int32
const ( Packet_NEW Packet_Type = 0 Packet_ACCEPT Packet_Type = 1 Packet_DATA Packet_Type = 2 Packet_CLOSE Packet_Type = 3 )
func (Packet_Type) EnumDescriptor ¶
func (Packet_Type) EnumDescriptor() ([]byte, []int)
func (Packet_Type) String ¶
func (x Packet_Type) String() string
Click to show internal directories.
Click to hide internal directories.