mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-14 00:51:12 +03:00
31 lines
1.1 KiB
Go
31 lines
1.1 KiB
Go
package option
|
|
|
|
import "github.com/sagernet/sing/common/json/badoption"
|
|
|
|
type SelectorOutboundOptions struct {
|
|
GroupCommonOption
|
|
Default string `json:"default,omitempty"`
|
|
InterruptExistConnections bool `json:"interrupt_exist_connections,omitempty"`
|
|
}
|
|
|
|
type URLTestOutboundOptions struct {
|
|
GroupCommonOption
|
|
URL string `json:"url,omitempty"`
|
|
Interval badoption.Duration `json:"interval,omitempty"`
|
|
Tolerance uint16 `json:"tolerance,omitempty"`
|
|
IdleTimeout badoption.Duration `json:"idle_timeout,omitempty"`
|
|
InterruptExistConnections bool `json:"interrupt_exist_connections,omitempty"`
|
|
}
|
|
|
|
type FallbackOutboundOptions struct {
|
|
Outbounds []string `json:"outbounds"`
|
|
}
|
|
|
|
type GroupCommonOption struct {
|
|
Outbounds []string `json:"outbounds"`
|
|
Providers []string `json:"providers"`
|
|
Exclude *badoption.Regexp `json:"exclude,omitempty"`
|
|
Include *badoption.Regexp `json:"include,omitempty"`
|
|
UseAllProviders bool `json:"use_all_providers,omitempty"`
|
|
}
|