Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
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"`
TemporaryChat bool `json:"temporary_chat"`
}
Config 保存服务的全局配置
func (Config) MarshalJSON ¶
MarshalJSON 将时长输出为 env 使用的文本格式
func (*Config) UnmarshalJSON ¶
UnmarshalJSON 从管理接口使用的文本时长解析配置
Click to show internal directories.
Click to hide internal directories.