github.com/sagernet/sing-box@v1.2.7/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 Secret string `json:"secret,omitempty"` 7 DefaultMode string `json:"default_mode,omitempty"` 8 StoreSelected bool `json:"store_selected,omitempty"` 9 CacheFile string `json:"cache_file,omitempty"` 10 } 11 12 type SelectorOutboundOptions struct { 13 Outbounds []string `json:"outbounds"` 14 Default string `json:"default,omitempty"` 15 } 16 17 type URLTestOutboundOptions struct { 18 Outbounds []string `json:"outbounds"` 19 URL string `json:"url,omitempty"` 20 Interval Duration `json:"interval,omitempty"` 21 Tolerance uint16 `json:"tolerance,omitempty"` 22 }