Files
game-driver/config/config.go

47 lines
703 B
Go

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