Migrate to independent cache file

This commit is contained in:
世界
2023-11-28 12:00:28 +08:00
parent 3e62aaa6fd
commit 6b817e349d
16 changed files with 227 additions and 179 deletions

15
option/group.go Normal file
View File

@@ -0,0 +1,15 @@
package option
type SelectorOutboundOptions struct {
Outbounds []string `json:"outbounds"`
Default string `json:"default,omitempty"`
InterruptExistConnections bool `json:"interrupt_exist_connections,omitempty"`
}
type URLTestOutboundOptions struct {
Outbounds []string `json:"outbounds"`
URL string `json:"url,omitempty"`
Interval Duration `json:"interval,omitempty"`
Tolerance uint16 `json:"tolerance,omitempty"`
InterruptExistConnections bool `json:"interrupt_exist_connections,omitempty"`
}