Documentation
¶
Index ¶
Constants ¶
View Source
const WAABackendCamoufox = "camoufox"
WAABackendCamoufox 表示由 Camoufox 页面承担 WAA 生命周期
View Source
const WAABackendGo = "go"
WAABackendGo 表示由纯 Go VM 承担 WAA 生命周期
Variables ¶
This section is empty.
Functions ¶
func ParseUpstreamChannels ¶ added in v0.2.0
ParseUpstreamChannels 把逗号分隔的通道列表拆成去空白的小写名称
Types ¶
type Config ¶
type Config struct {
AutoStart bool `json:"auto_start"`
RequestBodyLog bool `json:"request_body_log"`
AdminAuthEnabled bool `json:"admin_auth_enabled"`
AdminUsername string `json:"admin_username"`
AdminPassword string `json:"-"`
BuildNativeNonstream bool `json:"build_native_nonstream"`
AuthStates string `json:"auth_states"`
ListenAddr string `json:"listen_addr"`
ProxyAPIKey string `json:"proxy_api_key"`
Proxy string `json:"proxy"`
InitTimeout time.Duration `json:"-"`
RequestTimeout time.Duration `json:"-"`
WarmWorkerLimit int `json:"warm_worker_limit"`
MaxActiveWorkers int `json:"max_active_workers"`
WarmStartupConcurrency int `json:"warm_startup_concurrency"`
PerAccountConcurrency int `json:"per_account_concurrency"`
RoutingStrategy string `json:"routing_strategy"`
UpstreamChannels []string `json:"upstream_channels"`
TemporaryChat bool `json:"temporary_chat"`
WAABackend string `json:"waa_backend"`
}
Config 保存服务的全局配置
func (Config) MarshalJSON ¶
MarshalJSON 将时长输出为 env 使用的文本格式
func (*Config) UnmarshalJSON ¶
UnmarshalJSON 从管理接口使用的文本时长解析配置
Click to show internal directories.
Click to hide internal directories.