Files
game-driver/config/config.go
2025-02-27 11:36:40 +08:00

37 lines
531 B
Go

package config
import (
"gopkg.in/natefinch/lumberjack.v2"
)
type MqttConfig struct {
Url string
}
type AliyunConfig struct {
AccessKeyID string
AccessKeySecret string
AppKey string
Timeout int
Volume int
Voice string
SpeechRate int
}
type Logger struct {
File *lumberjack.Logger
Level string
}
type config struct {
Location string
Point int
Relay string
Log Logger
Mqtt MqttConfig
Aliyun AliyunConfig
MaxTimeout int
}
var C config