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 AccessToken
- type Aliyun
- type App
- type Baidu
- type Config
- type CosSystem
- type Filesystem
- type Http
- type LocalSystem
- type Midjourney
- type MidjourneyProxy
- type Model
- type OpenAI
- type OssSystem
- type QiniuSystem
- type Sdk
- type Xfyun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapStrStr ¶
Types ¶
type AccessToken ¶
type Baidu ¶
type Baidu struct { AccessToken *AccessToken `json:"access_token"` Models map[string]*Model `json:"models"` }
type Config ¶
type Config struct { Sdk *Sdk `json:"sdk"` Filesystem *Filesystem `json:"filesystem"` Http *Http `json:"http"` }
配置信息
var Cfg *Config
type CosSystem ¶
type CosSystem struct { SecretId string `json:"secret_id"` SecretKey string `json:"secret_key"` Bucket string `json:"bucket"` Region string `json:"region"` }
腾讯云 COS 文件存储
type Filesystem ¶
type Filesystem struct { Default string `json:"default"` Local LocalSystem `json:"local"` Oss OssSystem `json:"oss"` Qiniu QiniuSystem `json:"qiniu"` Cos CosSystem `json:"cos"` }
type LocalSystem ¶
本地存储
type Midjourney ¶
type Midjourney struct { CdnUrl string `json:"cdn_url"` ProxyUrl string `json:"proxy_url"` MidjourneyProxy *MidjourneyProxy `json:"midjourney_proxy"` }
type MidjourneyProxy ¶
type MidjourneyProxy struct { CdnProxyUrl string `json:"cdn_proxy_url"` CdnOriginalUrl string `json:"cdn_original_url"` ApiSecret string `json:"api_secret"` ApiSecretHeader string `json:"api_secret_header"` ImagineUrl string `json:"imagine_url"` SimpleChangeUrl string `json:"simple_change_url"` ChangeUrl string `json:"change_url"` DescribeUrl string `json:"describe_url"` BlendUrl string `json:"blend_url"` FetchUrl string `json:"fetch_url"` }
type OssSystem ¶
type OssSystem struct { AccessID string `json:"access_id"` AccessSecret string `json:"access_secret"` Bucket string `json:"bucket"` Endpoint string `json:"endpoint"` }
阿里云 OSS 文件存储
type QiniuSystem ¶
type QiniuSystem struct { AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` Bucket string `json:"bucket"` Domain string `json:"domain"` }
七牛云文件存储
Click to show internal directories.
Click to hide internal directories.