1
0

clash.go 748 B

12345678910111213141516171819202122
  1. package option
  2. type ClashAPIOptions struct {
  3. ExternalController string `json:"external_controller,omitempty"`
  4. ExternalUI string `json:"external_ui,omitempty"`
  5. Secret string `json:"secret,omitempty"`
  6. DefaultMode string `json:"default_mode,omitempty"`
  7. StoreSelected bool `json:"store_selected,omitempty"`
  8. CacheFile string `json:"cache_file,omitempty"`
  9. }
  10. type SelectorOutboundOptions struct {
  11. Outbounds []string `json:"outbounds"`
  12. Default string `json:"default,omitempty"`
  13. }
  14. type URLTestOutboundOptions struct {
  15. Outbounds []string `json:"outbounds"`
  16. URL string `json:"url,omitempty"`
  17. Interval Duration `json:"interval,omitempty"`
  18. Tolerance uint16 `json:"tolerance,omitempty"`
  19. }