基于 leaf 搭建的游戏服框架
- 实现了登录流程
- 使用Protobuf 数据格式传输
- conf:采用go-ini/ini
- log日志:采用zap/zapcore 和natefinch/lumberjack.v2,参考文章
- redis:采用go-redis,对set和Hset进行封装,支持单机和集群
- Token方案:基于jwt-go 实现
- orm:采用gorm 连MySQL
- 定时器:封装了robfig/cron
Go version>=1.12 and GO111MODULE=on
基于 leaf 搭建的游戏服框架
Go version>=1.12 and GO111MODULE=on