27 lines
325 B
Go
27 lines
325 B
Go
package config
|
|
|
|
type config struct {
|
|
Location string
|
|
Point int
|
|
Relay string
|
|
Mqtt MqttConfig
|
|
Aliyun AliyunConfig
|
|
Game GameConfig
|
|
}
|
|
|
|
type MqttConfig struct {
|
|
Url string
|
|
}
|
|
|
|
type AliyunConfig struct {
|
|
AppKey string
|
|
Token string
|
|
Timeout int
|
|
}
|
|
|
|
type GameConfig struct {
|
|
MaxTimeout int
|
|
}
|
|
|
|
var C config
|