Documentation
¶
Overview ¶
Package types is a generated protocol buffer package.
It is generated from these files:
echo.proto
It has these top-level messages:
Ping Pang EchoMsg PingLog PangLog
Index ¶
- Variables
- type EchoMsg
- func (*EchoMsg) Descriptor() ([]byte, []int)
- func (m *EchoMsg) GetPang() *Pang
- func (m *EchoMsg) GetPing() *Ping
- func (m *EchoMsg) GetTy() int32
- func (m *EchoMsg) GetValue() isEchoMsg_Value
- func (*EchoMsg) ProtoMessage()
- func (m *EchoMsg) Reset()
- func (m *EchoMsg) String() string
- func (*EchoMsg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type EchoMsg_Pang
- type EchoMsg_Ping
- type EchoOp
- type Pang
- type PangLog
- type Ping
- type PingLog
Constants ¶
This section is empty.
Variables ¶
View Source
var EchoOp_name = map[int32]string{
0: "Undefined",
1: "PingAction",
2: "PangAction",
}
View Source
var EchoOp_value = map[string]int32{
"Undefined": 0,
"PingAction": 1,
"PangAction": 2,
}
Functions ¶
This section is empty.
Types ¶
type EchoMsg ¶
type EchoMsg struct {
// Types that are valid to be assigned to Value:
// *EchoMsg_Ping
// *EchoMsg_Pang
Value isEchoMsg_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,3,opt,name=ty" json:"ty,omitempty"`
}
func (*EchoMsg) Descriptor ¶
func (*EchoMsg) ProtoMessage ¶
func (*EchoMsg) ProtoMessage()
type EchoMsg_Pang ¶
type EchoMsg_Pang struct {
Pang *Pang `protobuf:"bytes,2,opt,name=pang,oneof"`
}
type EchoMsg_Ping ¶
type EchoMsg_Ping struct {
Ping *Ping `protobuf:"bytes,1,opt,name=ping,oneof"`
}
type Pang ¶
type Pang struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*Pang) Descriptor ¶
func (*Pang) ProtoMessage ¶
func (*Pang) ProtoMessage()
type PangLog ¶
type PangLog struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
Echo string `protobuf:"bytes,2,opt,name=echo" json:"echo,omitempty"`
}
func (*PangLog) Descriptor ¶
func (*PangLog) ProtoMessage ¶
func (*PangLog) ProtoMessage()
type Ping ¶
type Ping struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
type PingLog ¶
type PingLog struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
Echo string `protobuf:"bytes,2,opt,name=echo" json:"echo,omitempty"`
}
func (*PingLog) Descriptor ¶
func (*PingLog) ProtoMessage ¶
func (*PingLog) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.