Documentation
¶
Index ¶
- func Get(ctx context.Context, pattern string, def ...interface{}) (*gvar.Var, error)
- func GetBool(ctx context.Context, pattern string, def ...interface{}) (bool, error)
- func GetInt(ctx context.Context, pattern string, def ...interface{}) int
- func GetMapStrStr(ctx context.Context, pattern string, def ...interface{}) map[string]string
- func GetString(ctx context.Context, pattern string, def ...interface{}) string
- type Api
- type Config
- type Core
- type Error
- type Gcp
- type Http
- type Local
- type Midjourney
- type MidjourneyProxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapStrStr ¶
Types ¶
type Config ¶
type Config struct {
Core Core `json:"core"`
ApiServerAddress string `json:"api_server_address"`
Http Http `json:"http"`
Local Local `json:"local"`
Api Api `json:"api"`
Midjourney Midjourney `json:"midjourney"`
Gcp Gcp `json:"gcp"`
RecordLogs []string `json:"record_logs"`
Error Error `json:"error"`
Debug bool `json:"debug"`
}
配置信息
var Cfg *Config
type Gcp ¶ added in v0.5.0
type Gcp struct {
GetTokenUrl string `json:"get_token_url" d:"https://www.googleapis.com/oauth2/v4/token"`
}
type Midjourney ¶
type Midjourney struct {
CdnUrl string `json:"cdn_url"`
MidjourneyProxy MidjourneyProxy `json:"midjourney_proxy"`
}
Click to show internal directories.
Click to hide internal directories.