1 Star 0 Fork 0

Stefan / xgameCommon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
define.go 795 Bytes
一键复制 编辑 原始数据 按行查看 历史
Stefan 提交于 2020-05-09 19:48 . add common file.
// add by stefan
package define
import (
"net/http"
)
type ERouteId int32
const (
ERouteId_ER_Invalid ERouteId = 0
ERouteId_ER_ESG ERouteId = 1
ERouteId_ER_ISG ERouteId = 2
ERouteId_ER_DB ERouteId = 3
ERouteId_ER_BigWorld ERouteId = 4
ERouteId_ER_Login ERouteId = 5
ERouteId_ER_SmallWorld ERouteId = 6
ERouteId_ER_DBProxy ERouteId = 7
ERouteId_ER_Game ERouteId = 8
ERouteId_ER_Client ERouteId = 9
ERouteId_ER_Max ERouteId = 10
)
type HandlerFunc func(http.ResponseWriter, *http.Request)
func (f HandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request) {
f(w, r)
}
type HandlerServMux struct {
muxhandler *http.ServeMux
}
//message format
/*
Session string/int64
MainID int32
SubID int32
message proto.Message
*/
Go
1
https://gitee.com/emmm_admin/xgameCommon.git
git@gitee.com:emmm_admin/xgameCommon.git
emmm_admin
xgameCommon
xgameCommon
v0.0.5

搜索帮助

53164aa7 5694891 3bd8fe86 5694891