ProtoMsg

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CMD_name = map[int32]string{
		0: "INIT_CMD",
		1: "PING",
		2: "PONG",
	}
	CMD_value = map[string]int32{
		"INIT_CMD": 0,
		"PING":     1,
		"PONG":     2,
	}
)

Enum value maps for CMD.

Functions

This section is empty.

Types

type C2S_Ping

type C2S_Ping struct {
	Ping string `protobuf:"bytes,1,opt,name=Ping,proto3" json:"Ping,omitempty"`
	// contains filtered or unexported fields
}

func (*C2S_Ping) Descriptor deprecated

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

Deprecated: Use C2S_Ping.ProtoReflect.Descriptor instead.

func (*C2S_Ping) GetPing

func (x *C2S_Ping) GetPing() string

func (*C2S_Ping) ProtoMessage

func (*C2S_Ping) ProtoMessage()

func (*C2S_Ping) ProtoReflect

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

func (*C2S_Ping) Reset

func (x *C2S_Ping) Reset()

func (*C2S_Ping) String

func (x *C2S_Ping) String() string

type CMD

type CMD int32
const (
	CMD_INIT_CMD CMD = 0
	CMD_PING     CMD = 1
	CMD_PONG     CMD = 2
)

func (CMD) Descriptor

func (CMD) Descriptor() protoreflect.EnumDescriptor

func (CMD) Enum

func (x CMD) Enum() *CMD

func (CMD) EnumDescriptor deprecated

func (CMD) EnumDescriptor() ([]byte, []int)

Deprecated: Use CMD.Descriptor instead.

func (CMD) Number

func (x CMD) Number() protoreflect.EnumNumber

func (CMD) String

func (x CMD) String() string

func (CMD) Type

func (CMD) Type() protoreflect.EnumType

type S2C_Pong

type S2C_Pong struct {
	Pong string `protobuf:"bytes,1,opt,name=Pong,proto3" json:"Pong,omitempty"`
	// contains filtered or unexported fields
}

func (*S2C_Pong) Descriptor deprecated

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

Deprecated: Use S2C_Pong.ProtoReflect.Descriptor instead.

func (*S2C_Pong) GetPong

func (x *S2C_Pong) GetPong() string

func (*S2C_Pong) ProtoMessage

func (*S2C_Pong) ProtoMessage()

func (*S2C_Pong) ProtoReflect

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

func (*S2C_Pong) Reset

func (x *S2C_Pong) Reset()

func (*S2C_Pong) String

func (x *S2C_Pong) String() string

Jump to

Keyboard shortcuts

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