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 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 { ApiServerAddress string `json:"api_server_address"` Http *Http `json:"http"` Api *Api `json:"api"` Midjourney *Midjourney `json:"midjourney"` Local *Local `json:"local"` Debug bool `json:"debug"` }
配置信息
var Cfg *Config
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.