protocol

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TxTrace transact.TransType = 1000
)

Variables

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

Functions

This section is empty.

Types

type CSPacketPing

type CSPacketPing struct {
	TimeStamb        *int64 `protobuf:"varint,1,req" json:"TimeStamb,omitempty"`
	Message          []byte `protobuf:"bytes,2,req" json:"Message,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*CSPacketPing) GetMessage

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

func (*CSPacketPing) GetTimeStamb

func (m *CSPacketPing) GetTimeStamb() int64

func (*CSPacketPing) ProtoMessage

func (*CSPacketPing) ProtoMessage()

func (*CSPacketPing) Reset

func (m *CSPacketPing) Reset()

func (*CSPacketPing) String

func (m *CSPacketPing) String() string

type PacketID

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

func (PacketID) Enum

func (x PacketID) Enum() *PacketID

func (PacketID) MarshalJSON

func (x PacketID) MarshalJSON() ([]byte, error)

func (PacketID) String

func (x PacketID) String() string

func (*PacketID) UnmarshalJSON

func (x *PacketID) UnmarshalJSON(data []byte) error

type SCPacketPong

type SCPacketPong struct {
	TimeStamb        *int64 `protobuf:"varint,1,req" json:"TimeStamb,omitempty"`
	Message          []byte `protobuf:"bytes,2,req" json:"Message,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*SCPacketPong) GetMessage

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

func (*SCPacketPong) GetTimeStamb

func (m *SCPacketPong) GetTimeStamb() int64

func (*SCPacketPong) ProtoMessage

func (*SCPacketPong) ProtoMessage()

func (*SCPacketPong) Reset

func (m *SCPacketPong) Reset()

func (*SCPacketPong) String

func (m *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