Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
AccountInfo :
func NewAccountInfo ¶
func NewAccountInfo(role, account string, t int64) *AccountInfo
NewAccountInfo :
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config : 配置组件
func (*Config) GetViperObj ¶
GetViperObj : 获取 viper 对象
func (*Config) LoadConfig ¶
LoadConfig : 逻辑层可以用该接口加载配置文件
type Role2Account ¶
type Role2Account struct {
// contains filtered or unexported fields
}
Role2Account : 本帮助类,提供`根据角色名查找账号`的功能
func NewRole2Account ¶
func NewRole2Account(ctx *common.Context) *Role2Account
NewRole2Account : 构造函数
func (*Role2Account) AddAndInsertDB ¶
func (role2account *Role2Account) AddAndInsertDB(role, account string) bool
AddAndInsertDB : 加入本地缓存并保存数据库
func (*Role2Account) GetAndActive ¶
func (role2account *Role2Account) GetAndActive(role string) string
GetAndActive : 根据角色名,查找账号。先从本地缓存中找,没有则数据库中找
type TCPServer ¶
type TCPServer struct {
// contains filtered or unexported fields
}
TCPServer : TCP Server 组件
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time : 随机函数组件
Source Files ¶
Click to show internal directories.
Click to hide internal directories.