pingpongpb

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetPingTime

func (x *Event) GetPingTime() *PingTime

func (*Event) GetType

func (m *Event) GetType() isEvent_Type

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) ReflectTypeOptions added in v0.4.1

func (*Event) ReflectTypeOptions() []reflect.Type

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetPing

func (x *Message) GetPing() *Ping

func (*Message) GetPong

func (x *Message) GetPong() *Pong

func (*Message) GetType

func (m *Message) GetType() isMessage_Type

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) ReflectTypeOptions added in v0.4.1

func (*Message) ReflectTypeOptions() []reflect.Type

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetSeqNr

func (x *Ping) GetSeqNr() uint64

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

func (x *Ping) ProtoReflect() protoreflect.Message

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

type PingTime

type PingTime struct {
	// contains filtered or unexported fields
}

func (*PingTime) Descriptor deprecated

func (*PingTime) Descriptor() ([]byte, []int)

Deprecated: Use PingTime.ProtoReflect.Descriptor instead.

func (*PingTime) ProtoMessage

func (*PingTime) ProtoMessage()

func (*PingTime) ProtoReflect

func (x *PingTime) ProtoReflect() protoreflect.Message

func (*PingTime) Reset

func (x *PingTime) Reset()

func (*PingTime) String

func (x *PingTime) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetSeqNr

func (x *Pong) GetSeqNr() uint64

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

func (x *Pong) ProtoReflect() protoreflect.Message

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL