Improve config struct

This commit is contained in:
世界
2022-07-25 11:29:46 +08:00
parent 94ae7403ef
commit 18bdfbf187
22 changed files with 187 additions and 362 deletions

19
option/clash.go Normal file
View File

@@ -0,0 +1,19 @@
package option
type ClashAPIOptions struct {
ExternalController string `json:"external_controller,omitempty"`
ExternalUI string `json:"external_ui,omitempty"`
Secret string `json:"secret,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"`
}