Documentation ¶
Index ¶
- Constants
- Variables
- func Center_AllocUserDB() string
- func Center_ChangeName(oldname, newname string) bool
- func Center_GenUserId(dbname string) string
- func Center_GetServerMergeName(svr0 string) string
- func Center_GetServerUserLimit(svr0 string) int32
- func Center_IncUserLoad(dbname string)
- func Center_InsertName(name string) bool
- func DatabaseClose()
- func DatabaseOpen()
- type UserInfo
Constants ¶
View Source
const ( // center C_tabname_svrlist = "svrlist" C_tabname_userinfo = "userinfo" C_tabname_userload = "userload" C_tabname_seqid = "seqid" C_tabname_names = "names" )
View Source
const (
C_player_name_maxlen = 18
)
Variables ¶
View Source
var (
DBCenter *db.Database
)
Functions ¶
func Center_AllocUserDB ¶
func Center_AllocUserDB() string
func Center_ChangeName ¶
func Center_GenUserId ¶
func Center_IncUserLoad ¶
func Center_IncUserLoad(dbname string)
func Center_InsertName ¶
func DatabaseClose ¶
func DatabaseClose()
func DatabaseOpen ¶
func DatabaseOpen()
Types ¶
type UserInfo ¶
type UserInfo struct { UserId string `bson:"_id"` AuthId string `bson:"authid"` Svr0 string `bson:"svr0"` Svr string `bson:"svr"` Sdk string `bson:"sdk"` Plat string `bson:"plat"` DevId string `bson:"devid"` IP string `bson:"ip"` CreateTs time.Time `bson:"cts"` BanTs time.Time `bson:"ban_ts"` Name string `bson:"name"` Lv int32 `bson:"lv"` Vip int32 `bson:"vip"` Tutorial int32 `bson:"tut"` }
func Center_GetUserInfo ¶
func Center_GetUserInfoById ¶
Click to show internal directories.
Click to hide internal directories.