mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 15:42:25 +08:00
玩家管理模块接入redis,已完整实现好友、多人世界的跨服交互功能
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user