Ai
3 Star 41 Fork 40

coco/go808

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
entity.go 293 Bytes
一键复制 编辑 原始数据 按行查看 历史
coco 提交于 2020-04-02 18:23 +08:00 . initial commit
package protocol
import "io"
// 消息实体
type Entity interface {
MsgID() MsgID
Encode() ([]byte, error)
Decode([]byte) (int, error)
}
// 可分包实体
type EntityPacket interface {
Entity
GetTag() uint32
GetReader() io.Reader
SetReader(io.Reader)
DecodePacket([]byte) error
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/coco/go808.git
git@gitee.com:coco/go808.git
coco
go808
go808
5c885155315d

搜索帮助