27 lines
873 B
Go
27 lines
873 B
Go
package config
|
|
|
|
var ExtConfig Extend
|
|
|
|
type Extend struct {
|
|
AMap AMap `yaml:"demo" json:"demo"`
|
|
Huohanhan HuohanhanConfig `yaml:"huohanhan" json:"huohanhan"`
|
|
Redis RedisConfig `yaml:"redis" json:"redis"`
|
|
}
|
|
type RedisConfig struct {
|
|
Addr string `yaml:"addr" json:"addr"`
|
|
Password string `yaml:"password" json:"password"`
|
|
DB int `yaml:"db" json:"db"`
|
|
AuthTTLSeconds int `yaml:"auth_ttl_seconds" json:"auth_ttl_seconds"`
|
|
}
|
|
type AMap struct {
|
|
Key string `yaml:"key" json:"key"`
|
|
}
|
|
type HuohanhanConfig struct {
|
|
BaseURL string `yaml:"base_url" json:"base_url"`
|
|
Account string `yaml:"account" json:"account"`
|
|
Password string `yaml:"password" json:"password"`
|
|
OCRURL string `yaml:"ocr_url" json:"ocr_url"`
|
|
StateDB string `yaml:"state_db" json:"state_db"`
|
|
APIKey string `yaml:"api_key" json:"api_key"`
|
|
}
|