游戏节点配置嵌入在一个配置文件中
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"game-driver/internal/routes/play/card_pusher"
|
||||
"gopkg.in/natefinch/lumberjack.v2"
|
||||
)
|
||||
|
||||
@@ -17,24 +16,19 @@ type AliyunConfig struct {
|
||||
Voice string
|
||||
}
|
||||
|
||||
type GameConfig struct {
|
||||
MaxTimeout int
|
||||
CardGroups []*card_pusher.LineGroup
|
||||
}
|
||||
|
||||
type Logger struct {
|
||||
File *lumberjack.Logger
|
||||
Level string
|
||||
}
|
||||
|
||||
type config struct {
|
||||
Location string
|
||||
Point int
|
||||
Relay string
|
||||
Log Logger
|
||||
Mqtt MqttConfig
|
||||
Aliyun AliyunConfig
|
||||
Game GameConfig
|
||||
Location string
|
||||
Point int
|
||||
Relay string
|
||||
Log Logger
|
||||
Mqtt MqttConfig
|
||||
Aliyun AliyunConfig
|
||||
MaxTimeout int
|
||||
}
|
||||
|
||||
var C config
|
||||
|
||||
Reference in New Issue
Block a user