Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AliYunConf ¶
type AliYunConf struct { AccessKeyId string `yaml:"access_key_id"` AccessKeySecret string `yaml:"accessKey_secret"` AppKey string `yaml:"app_key"` OssEndpoint string `yaml:"oss_endpoint"` BucketName string `yaml:"bucket_name"` BucketDomain string `yaml:"bucket_domain"` }
阿里云配置
func (*AliYunConf) Check ¶
func (a *AliYunConf) Check() bool
type ApiConf ¶
type ApiConf struct { AppId string `yaml:"app_id"` SecretKey string `yaml:"secret_key"` Interval int64 `yaml:"interval"` }
通用的api 认证配置
type Config ¶
type Config struct { Baidu ApiConf `yaml:"baidu"` Google GoogleConf `yaml:"google"` Tencent TencentConf `yaml:"tencent"` Aliyun AliYunConf `yaml:"aliyun"` SampleRate int32 AudioCachePath string `yaml:"audio_cache_path"` SrtPath string `yaml:"srt_path"` TransTools []string `yaml:"translate_tools"` GenerateTools []string `yaml:"generate_tools"` FFmpeg string `yaml:"ffmpeg"` }
应用程序配置
var (
G_Config Config
)
type GoogleConf ¶ added in v1.0.0
type GoogleConf struct { CredentialsFile string `yaml:"credentials_file"` Interval int `yaml:"interval"` BucketName string `yaml:"bucket_name"` }
google服务配置
func (*GoogleConf) Check ¶ added in v1.0.0
func (g *GoogleConf) Check() bool
type TencentConf ¶
type TencentConf struct { Interval int `yaml:"interval"` Qtv string `yaml:"qtv"` Qtk string `yaml:"qtk"` }
腾讯翻译配置
func (*TencentConf) Check ¶
func (t *TencentConf) Check() bool
Click to show internal directories.
Click to hide internal directories.