2022-07-25 03:29:46 +00:00
|
|
|
package option
|
|
|
|
|
|
|
|
type ClashAPIOptions struct {
|
|
|
|
ExternalController string `json:"external_controller,omitempty"`
|
|
|
|
ExternalUI string `json:"external_ui,omitempty"`
|
|
|
|
Secret string `json:"secret,omitempty"`
|
2022-09-10 06:40:16 +00:00
|
|
|
|
2022-09-26 07:31:02 +00:00
|
|
|
DirectIO bool `json:"direct_io,omitempty"`
|
2022-09-10 06:40:16 +00:00
|
|
|
DefaultMode string `json:"default_mode,omitempty"`
|
|
|
|
StoreSelected bool `json:"store_selected,omitempty"`
|
|
|
|
CacheFile string `json:"cache_file,omitempty"`
|
2022-07-25 03:29:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SelectorOutboundOptions struct {
|
|
|
|
Outbounds []string `json:"outbounds"`
|
|
|
|
Default string `json:"default,omitempty"`
|
|
|
|
}
|
2022-09-15 07:22:08 +00:00
|
|
|
|
|
|
|
type URLTestOutboundOptions struct {
|
|
|
|
Outbounds []string `json:"outbounds"`
|
|
|
|
URL string `json:"url,omitempty"`
|
|
|
|
Interval Duration `json:"interval,omitempty"`
|
|
|
|
Tolerance uint16 `json:"tolerance,omitempty"`
|
|
|
|
}
|