api

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonHead

type JsonHead struct {
	Id             int64  `json:"Id,omitempty"`
	SocketId       uint32 `json:"SocketId,omitempty"`
	SrcClusterId   uint32 `json:"SrcClusterId,omitempty"`
	ClusterId      uint32 `json:"ClusterId,omitempty"`
	DestServerType int32  `json:"DestServerType,omitempty"`
	SendType       int32  `json:"SendType,omitempty"`
	ActorName      string `json:"ActorName,omitempty"`
	Reply          string `json:"Reply,omitempty"`
	Code           int32  `json:"Code,omitempty"`
	Msg            string `json:"Msg,omitempty"`
	Token          string `json:"Token,omitempty"`
}

type JsonPacket

type JsonPacket struct {
	FuncName string      `json:"FuncName,omitempty"`
	Head     *JsonHead   `json:"Head,omitempty"`
	Data     interface{} `json:"Data,omitempty"` // TODO json.RawMessage
}

type Packet

type Packet struct {
	Id         uint32      `json:"Id,omitempty"`
	Reply      string      `json:"Reply,omitempty"`
	Buff       []byte      `json:"Buff,omitempty"`
	JsonPacket *JsonPacket `json:"JsonPacket,omitempty"`
}

Jump to

Keyboard shortcuts

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