Documentation ¶
Index ¶
- Variables
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetPingTime() *PingTime
- func (m *Event) GetType() isEvent_Type
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (*Event) ReflectTypeOptions() []reflect.Type
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_PingTime
- type Event_Type
- type Event_TypeWrapper
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetPing() *Ping
- func (x *Message) GetPong() *Pong
- func (m *Message) GetType() isMessage_Type
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (*Message) ReflectTypeOptions() []reflect.Type
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_Ping
- type Message_Pong
- type Message_Type
- type Message_TypeWrapper
- type Ping
- type PingTime
- type Pong
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pingpongpb_pingpongpb_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // Types that are assignable to Type: // *Event_PingTime Type isEvent_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetPingTime ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) ReflectTypeOptions ¶ added in v0.4.1
type Event_PingTime ¶
type Event_PingTime struct {
PingTime *PingTime `protobuf:"bytes,1,opt,name=ping_time,json=pingTime,proto3,oneof"`
}
func (*Event_PingTime) Unwrap ¶ added in v0.4.1
func (w *Event_PingTime) Unwrap() *PingTime
type Event_Type ¶ added in v0.4.1
type Event_Type = isEvent_Type
type Event_TypeWrapper ¶ added in v0.4.1
type Event_TypeWrapper[T any] interface { Event_Type Unwrap() *T }
type Message ¶
type Message struct { // Types that are assignable to Type: // *Message_Ping // *Message_Pong Type isMessage_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
func (*Message) ReflectTypeOptions ¶ added in v0.4.1
type Message_Ping ¶
type Message_Ping struct {
Ping *Ping `protobuf:"bytes,1,opt,name=ping,proto3,oneof"`
}
func (*Message_Ping) Unwrap ¶ added in v0.4.1
func (w *Message_Ping) Unwrap() *Ping
type Message_Pong ¶
type Message_Pong struct {
Pong *Pong `protobuf:"bytes,2,opt,name=pong,proto3,oneof"`
}
func (*Message_Pong) Unwrap ¶ added in v0.4.1
func (w *Message_Pong) Unwrap() *Pong
type Message_Type ¶ added in v0.4.1
type Message_Type = isMessage_Type
type Message_TypeWrapper ¶ added in v0.4.1
type Message_TypeWrapper[T any] interface { Message_Type Unwrap() *T }
type Ping ¶
type Ping struct { SeqNr uint64 `protobuf:"varint,1,opt,name=seq_nr,json=seqNr,proto3" json:"seq_nr,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 PingTime ¶
type PingTime struct {
// contains filtered or unexported fields
}
func (*PingTime) Descriptor
deprecated
func (*PingTime) ProtoMessage ¶
func (*PingTime) ProtoMessage()
func (*PingTime) ProtoReflect ¶
func (x *PingTime) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct { SeqNr uint64 `protobuf:"varint,1,opt,name=seq_nr,json=seqNr,proto3" json:"seq_nr,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
Click to show internal directories.
Click to hide internal directories.