Documentation
¶
Index ¶
- Constants
- func AuthorizedCallback(conn defs.IConnection, packet defs.IPacket) (bool, int)
- func GetAuthorizedData(typ int32, name, key string) []byte
- func MarshalData(v interface{}) ([]byte, error)
- func MarshalDataEx(v interface{}) []byte
- func Unmarshal(data []byte, v interface{}) error
- func ZlibCompress(src []byte) []byte
- func ZlibUnCompress(src []byte) []byte
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 GetAuthorizedData ¶
func MarshalData ¶
func MarshalDataEx ¶
func MarshalDataEx(v interface{}) []byte
func ZlibCompress ¶
func ZlibUnCompress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.