protocol

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TxTrace transact.TransType = 1000
)

Variables

View Source
var (
	PacketID_name = map[int32]string{
		0:    "PACKET_UNKNOW",
		1000: "PACKET_CS_PING",
		1001: "PACKET_SC_PONG",
	}
	PacketID_value = map[string]int32{
		"PACKET_UNKNOW":  0,
		"PACKET_CS_PING": 1000,
		"PACKET_SC_PONG": 1001,
	}
)

Enum value maps for PacketID.

View Source
var File_packetid_proto protoreflect.FileDescriptor
View Source
var File_pingpong_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CSPacketPing

type CSPacketPing struct {
	TimeStamb int64  `protobuf:"varint,1,opt,name=TimeStamb,proto3" json:"TimeStamb,omitempty"`
	Message   []byte `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*CSPacketPing) Descriptor deprecated

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

Deprecated: Use CSPacketPing.ProtoReflect.Descriptor instead.

func (*CSPacketPing) GetMessage

func (x *CSPacketPing) GetMessage() []byte

func (*CSPacketPing) GetTimeStamb

func (x *CSPacketPing) GetTimeStamb() int64

func (*CSPacketPing) ProtoMessage

func (*CSPacketPing) ProtoMessage()

func (*CSPacketPing) ProtoReflect

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

func (*CSPacketPing) Reset

func (x *CSPacketPing) Reset()

func (*CSPacketPing) String

func (x *CSPacketPing) String() string

type PacketID

type PacketID int32
const (
	PacketID_PACKET_UNKNOW  PacketID = 0
	PacketID_PACKET_CS_PING PacketID = 1000
	PacketID_PACKET_SC_PONG PacketID = 1001
)

func (PacketID) Descriptor

func (PacketID) Descriptor() protoreflect.EnumDescriptor

func (PacketID) Enum

func (x PacketID) Enum() *PacketID

func (PacketID) EnumDescriptor deprecated

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

Deprecated: Use PacketID.Descriptor instead.

func (PacketID) Number

func (x PacketID) Number() protoreflect.EnumNumber

func (PacketID) String

func (x PacketID) String() string

func (PacketID) Type

type SCPacketPong

type SCPacketPong struct {
	TimeStamb int64  `protobuf:"varint,1,opt,name=TimeStamb,proto3" json:"TimeStamb,omitempty"`
	Message   []byte `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*SCPacketPong) Descriptor deprecated

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

Deprecated: Use SCPacketPong.ProtoReflect.Descriptor instead.

func (*SCPacketPong) GetMessage

func (x *SCPacketPong) GetMessage() []byte

func (*SCPacketPong) GetTimeStamb

func (x *SCPacketPong) GetTimeStamb() int64

func (*SCPacketPong) ProtoMessage

func (*SCPacketPong) ProtoMessage()

func (*SCPacketPong) ProtoReflect

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

func (*SCPacketPong) Reset

func (x *SCPacketPong) Reset()

func (*SCPacketPong) String

func (x *SCPacketPong) String() string

type StructA

type StructA struct {
	X, Y, Z int
	P       *int
	Desc    string
}

Jump to

Keyboard shortcuts

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