github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/option/clash.go (about) 1 package option 2 3 type ClashAPIOptions struct { 4 ExternalController string `json:"external_controller,omitempty"` 5 ExternalUI string `json:"external_ui,omitempty"` 6 ExternalUIDownloadURL string `json:"external_ui_download_url,omitempty"` 7 ExternalUIDownloadDetour string `json:"external_ui_download_detour,omitempty"` 8 Secret string `json:"secret,omitempty"` 9 DefaultMode string `json:"default_mode,omitempty"` 10 StoreMode bool `json:"store_mode,omitempty"` 11 StoreSelected bool `json:"store_selected,omitempty"` 12 StoreFakeIP bool `json:"store_fakeip,omitempty"` 13 CacheFile string `json:"cache_file,omitempty"` 14 CacheID string `json:"cache_id,omitempty"` 15 16 ModeList []string `json:"-"` 17 } 18 19 type SelectorOutboundOptions struct { 20 Outbounds []string `json:"outbounds"` 21 Default string `json:"default,omitempty"` 22 } 23 24 type URLTestOutboundOptions struct { 25 Outbounds []string `json:"outbounds"` 26 URL string `json:"url,omitempty"` 27 Interval Duration `json:"interval,omitempty"` 28 Tolerance uint16 `json:"tolerance,omitempty"` 29 }