package
0.0.0-20210119145015-96491ade4a78
Repository: https://github.com/fananchong/go-xserver.git
Documentation: pkg.go.dev
# Constants
LoginSuccess : 登陆成功.
LoginSystemError : 系统错误.
LoginVerifyFail : 验证错误.
# Interfaces
IClientSesion : 客户端会话类.
IConfig : 配置类接口.
IGateway : 网关模块接口.
ILogger : 日志类接口.
ILogin : 登陆模块接口.
INode : 节点类接口(其实现,封装自动接入服务器组、服务发现、服务消息传递等细节).
IRand : 随机类接口.
IRole2Account : 提供`根据角色名查找账号`的功能;角色名重名检查也可以用该接口.
ITCPServer : TCP 服务接口.
ITime : 时间类接口.
IUID : 唯一ID接口.
# Type aliases
FuncTypeAccountVerification : 账号验证函数声明.
FuncTypeDecode : 数据解密函数声明.
FuncTypeEncode : 数据加密函数声明.
FuncTypeOnLoseAccount : 处理丢失账号的函数声明.
FuncTypeOnRelayMsg : 处理中继消息的函数声明。 客户端来的消息 nodeID 为 0; 服务器端间的消息 account 为空.
FuncTypeSendToAllClient : 发送所有客户端数据函数声明.
FuncTypeSendToClient : 发送客户端数据函数声明.
LoginErrCode : 登陆错误.
NodeID : 服务节点ID类型.