1 Star 0 Fork 0

oliverxu/kingjin

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
iserver.go 464 Bytes
一键复制 编辑 原始数据 按行查看 历史
oliverxu 提交于 2021-02-28 12:21 +08:00 . 更新
package iface
import "gitee.com/oliverxu/kingjin/utils/sync2/atomic2"
//定义服务器接口
type IServer interface {
//启动服务器方法
Start()
//停止服务器方法
Stop()
//开启业务服务方法
Serve()
//路由功能:给当前服务注册一个路由业务方法,供客户端链接处理使用
AddRouter(bizType string, router IRouter)
AddMessage(msg IMessage) //添加消息
Stat() []atomic2.Int64 //获取进程处理的数量
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/oliverxu/kingjin.git
git@gitee.com:oliverxu/kingjin.git
oliverxu
kingjin
kingjin
v1.0.2

搜索帮助