玩家管理模块接入redis,已完整实现好友、多人世界的跨服交互功能

This commit is contained in:
flswld
2022-12-29 22:42:57 +08:00
parent 0a2e13fad3
commit 6fd3d6a349
25 changed files with 1094 additions and 407 deletions

View File

@@ -13,6 +13,7 @@ type Config struct {
HttpPort int32 `toml:"http_port"`
Logger Logger `toml:"logger"`
Database Database `toml:"database"`
Redis Redis `toml:"redis"`
Hk4e Hk4e `toml:"hk4e"`
MQ MQ `toml:"mq"`
}
@@ -30,6 +31,11 @@ type Database struct {
Url string `toml:"url"`
}
type Redis struct {
Addr string `toml:"addr"`
Password string `toml:"password"`
}
// Hk4e 原神相关
type Hk4e struct {
KcpPort int32 `toml:"kcp_port"`