1 Star 0 Fork 0

Stefan / xgameCommon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
define.go 662 Bytes
一键复制 编辑 原始数据 按行查看 历史
Stefan 提交于 2020-05-09 19:48 . add common file.
package ado
// add by stefan
// some data could be saved to cache or db for Persistence.
type EDataUpdateType int32
const (
ED_SYNC_DB EDataUpdateType = 1
ED_SYNC_REDIS EDataUpdateType = 2
)
const (
EDB_DATA_SAVE_INTERVAL int32 = 10 //5 * 60
)
const (
EMgo_Thread_Cnt = int32(1000)
)
/*
*/
type IDBModule struct {
StrIdentify string `bson:"_id" json:"_id"`
}
type EDBOperType int32
const (
EDBOper_Insert EDBOperType = 1
EDBOper_Update EDBOperType = 2
EDBOper_Delete EDBOperType = 3
EDBOper_DB EDBOperType = 4
EDBOper_EXPIRE EDBOperType = 5
EDBOper_LAND EDBOperType = 6
// ...
)
const (
EDBMgoOper_Update = string("MgoUpdate")
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/emmm_admin/xgameCommon.git
git@gitee.com:emmm_admin/xgameCommon.git
emmm_admin
xgameCommon
xgameCommon
v0.0.5

搜索帮助

344bd9b3 5694891 D2dac590 5694891