2022-07-25 03:29:46 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type ClashAPIOptions struct {
|
2023-04-09 04:39:26 +00:00
|
|
|
ExternalController string `json:"external_controller,omitempty"`
|
|
|
|
ExternalUI string `json:"external_ui,omitempty"`
|
|
|
|
ExternalUIDownloadURL string `json:"external_ui_download_url,omitempty"`
|
|
|
|
ExternalUIDownloadDetour string `json:"external_ui_download_detour,omitempty"`
|
|
|
|
Secret string `json:"secret,omitempty"`
|
|
|
|
DefaultMode string `json:"default_mode,omitempty"`
|
2023-08-24 13:52:38 +00:00
|
|
|
StoreMode bool `json:"store_mode,omitempty"`
|
2023-04-09 04:39:26 +00:00
|
|
|
StoreSelected bool `json:"store_selected,omitempty"`
|
|
|
|
StoreFakeIP bool `json:"store_fakeip,omitempty"`
|
|
|
|
CacheFile string `json:"cache_file,omitempty"`
|
2023-05-09 09:58:59 +00:00
|
|
|
CacheID string `json:"cache_id,omitempty"`
|
2023-08-24 13:52:38 +00:00
|
|
|
|
|
|
|
ModeList []string `json:"-"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SelectorOutboundOptions struct {
|
2023-09-14 16:07:07 +00:00
|
|
|
Outbounds []string `json:"outbounds"`
|
|
|
|
Default string `json:"default,omitempty"`
|
|
|
|
InterruptExistConnections bool `json:"interrupt_exist_connections,omitempty"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|
2022-09-15 07:22:08 +00:00
|
|
|
|
|
|
|
type URLTestOutboundOptions struct {
|
2023-09-14 16:07:07 +00:00
|
|
|
Outbounds []string `json:"outbounds"`
|
|
|
|
URL string `json:"url,omitempty"`
|
|
|
|
Interval Duration `json:"interval,omitempty"`
|
|
|
|
Tolerance uint16 `json:"tolerance,omitempty"`
|
|
|
|
InterruptExistConnections bool `json:"interrupt_exist_connections,omitempty"`
|
2022-09-15 07:22:08 +00:00
|
|
|
}
|