common

package
v0.0.0-...-78a0d84 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ST_NIL = iota
	ST_GATE
	ST_LOGIC
	ST_CENTER
	ST_FIGHT
	ST_MAX
)
View Source
const (
	GateKey  = "helloGateo3@#^34Sdsdfj@5"
	LogicKey = "helloLogic*&12@$sdlkl$sdf"
)
View Source
const (
	ETCD_LOGIC_PATH = "/game/logic"
	ETCD_GATE_PATH  = "/game/gate"
)

Variables

This section is empty.

Functions

func AuthorizedCallback

func AuthorizedCallback(conn defs.IConnection, packet defs.IPacket) (bool, int)

func GetAuthorizedData

func GetAuthorizedData(typ int32, name, key string) []byte

func MarshalData

func MarshalData(v interface{}) ([]byte, error)

func MarshalDataEx

func MarshalDataEx(v interface{}) []byte

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

func ZlibCompress

func ZlibCompress(src []byte) []byte

func ZlibUnCompress

func ZlibUnCompress(src []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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