api

package
v0.0.0-...-037b315 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CMD_PING int32 = 1
)

Functions

func Register

func Register(srvID int32)

Types

type PingReq

type PingReq struct {
	UID string `json:"uid"`
}

func (*PingReq) Marshal

func (p *PingReq) Marshal() ([]byte, error)

func (*PingReq) Unmarshal

func (p *PingReq) Unmarshal(data []byte) error

type PingRsp

type PingRsp struct {
	Pong string `json:"pong"`
	ID   int32  `json:"id"`
}

func (*PingRsp) Marshal

func (p *PingRsp) Marshal() ([]byte, error)

func (*PingRsp) Unmarshal

func (p *PingRsp) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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