clash.go 785 B

123456789101112131415161718192021222324
  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. DirectIO bool `json:"direct_io,omitempty"`
  7. DefaultMode string `json:"default_mode,omitempty"`
  8. StoreSelected bool `json:"store_selected,omitempty"`
  9. CacheFile string `json:"cache_file,omitempty"`
  10. }
  11. type SelectorOutboundOptions struct {
  12. Outbounds []string `json:"outbounds"`
  13. Default string `json:"default,omitempty"`
  14. }
  15. type URLTestOutboundOptions struct {
  16. Outbounds []string `json:"outbounds"`
  17. URL string `json:"url,omitempty"`
  18. Interval Duration `json:"interval,omitempty"`
  19. Tolerance uint16 `json:"tolerance,omitempty"`
  20. }