Documentation
¶
Index ¶
- Variables
- type EchoMsg
- func (*EchoMsg) Descriptor() ([]byte, []int)deprecated
- func (x *EchoMsg) GetPing() *Ping
- func (x *EchoMsg) GetPong() *Pong
- func (x *EchoMsg) GetTy() int32
- func (m *EchoMsg) GetValue() isEchoMsg_Value
- func (*EchoMsg) ProtoMessage()
- func (x *EchoMsg) ProtoReflect() protoreflect.Message
- func (x *EchoMsg) Reset()
- func (x *EchoMsg) String() string
- type EchoMsg_Ping
- type EchoMsg_Pong
- type EchoOp
- type Ping
- type PingLog
- type Pong
- type PongLog
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EchoOp_name = map[int32]string{ 0: "Undefined", 1: "PingAction", 2: "PongAction", } EchoOp_value = map[string]int32{ "Undefined": 0, "PingAction": 1, "PongAction": 2, } )
Enum value maps for EchoOp.
View Source
var File_echo_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EchoMsg ¶
type EchoMsg struct {
// Types that are assignable to Value:
// *EchoMsg_Ping
// *EchoMsg_Pong
Value isEchoMsg_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`
// contains filtered or unexported fields
}
func (*EchoMsg) Descriptor
deprecated
func (*EchoMsg) ProtoMessage ¶
func (*EchoMsg) ProtoMessage()
func (*EchoMsg) ProtoReflect ¶
func (x *EchoMsg) ProtoReflect() protoreflect.Message
type EchoMsg_Ping ¶
type EchoMsg_Ping struct {
Ping *Ping `protobuf:"bytes,1,opt,name=ping,proto3,oneof"`
}
type EchoMsg_Pong ¶
type EchoMsg_Pong struct {
Pong *Pong `protobuf:"bytes,2,opt,name=pong,proto3,oneof"`
}
type EchoOp ¶
type EchoOp int32
func (EchoOp) Descriptor ¶
func (EchoOp) Descriptor() protoreflect.EnumDescriptor
func (EchoOp) EnumDescriptor
deprecated
func (EchoOp) Number ¶
func (x EchoOp) Number() protoreflect.EnumNumber
func (EchoOp) Type ¶
func (EchoOp) Type() protoreflect.EnumType
type Ping ¶
type Ping struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*Ping) Descriptor
deprecated
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type PingLog ¶
type PingLog struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
Echo string `protobuf:"bytes,2,opt,name=echo,proto3" json:"echo,omitempty"`
// contains filtered or unexported fields
}
func (*PingLog) Descriptor
deprecated
func (*PingLog) ProtoMessage ¶
func (*PingLog) ProtoMessage()
func (*PingLog) ProtoReflect ¶
func (x *PingLog) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
func (*Pong) Descriptor
deprecated
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
type PongLog ¶
type PongLog struct {
Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
Echo string `protobuf:"bytes,2,opt,name=echo,proto3" json:"echo,omitempty"`
// contains filtered or unexported fields
}
func (*PongLog) Descriptor
deprecated
func (*PongLog) ProtoMessage ¶
func (*PongLog) ProtoMessage()
func (*PongLog) ProtoReflect ¶
func (x *PongLog) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.