mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 16:41:30 +00:00
27 lines
1 KiB
Go
27 lines
1 KiB
Go
package option
|
|
|
|
type ClashAPIOptions struct {
|
|
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"`
|
|
StoreSelected bool `json:"store_selected,omitempty"`
|
|
StoreFakeIP bool `json:"store_fakeip,omitempty"`
|
|
CacheFile string `json:"cache_file,omitempty"`
|
|
CacheID string `json:"cache_id,omitempty"`
|
|
}
|
|
|
|
type SelectorOutboundOptions struct {
|
|
Outbounds []string `json:"outbounds"`
|
|
Default string `json:"default,omitempty"`
|
|
}
|
|
|
|
type URLTestOutboundOptions struct {
|
|
Outbounds []string `json:"outbounds"`
|
|
URL string `json:"url,omitempty"`
|
|
Interval Duration `json:"interval,omitempty"`
|
|
Tolerance uint16 `json:"tolerance,omitempty"`
|
|
}
|