Documentation ¶
Index ¶
- Constants
- func ParseProxyProvider(name string, mapping map[string]any) (types.ProxyProvider, error)
- type CompatibleProvider
- func (cp CompatibleProvider) HealthCheck()
- func (cp CompatibleProvider) HealthCheckURL() string
- func (cp CompatibleProvider) Initial() error
- func (cp CompatibleProvider) MarshalJSON() ([]byte, error)
- func (cp CompatibleProvider) Name() string
- func (cp CompatibleProvider) Proxies() []C.Proxy
- func (cp CompatibleProvider) RegisterHealthCheckTask(url string, expectedStatus utils.IntRanges[uint16], filter string, ...)
- func (cp CompatibleProvider) Touch()
- func (cp CompatibleProvider) Type() types.ProviderType
- func (cp CompatibleProvider) Update() error
- func (cp CompatibleProvider) VehicleType() types.VehicleType
- func (cp CompatibleProvider) Version() uint32
- type HealthCheck
- type HealthCheckOption
- type OverrideSchema
- type ProxySchema
- type ProxySetProvider
- func (pp ProxySetProvider) HealthCheck()
- func (pp ProxySetProvider) HealthCheckURL() string
- func (pp ProxySetProvider) Initial() error
- func (pp ProxySetProvider) MarshalJSON() ([]byte, error)
- func (pp ProxySetProvider) Name() string
- func (pp ProxySetProvider) Proxies() []C.Proxy
- func (pp ProxySetProvider) RegisterHealthCheckTask(url string, expectedStatus utils.IntRanges[uint16], filter string, ...)
- func (pp ProxySetProvider) Touch()
- func (pp ProxySetProvider) Type() types.ProviderType
- func (pp ProxySetProvider) Update() error
- func (pp ProxySetProvider) Version() uint32
- type SubscriptionInfo
Constants ¶
View Source
const (
ReservedName = "default"
)
Variables ¶
This section is empty.
Functions ¶
func ParseProxyProvider ¶
Types ¶
type CompatibleProvider ¶
type CompatibleProvider struct {
// contains filtered or unexported fields
}
CompatibleProvider for auto gc
func NewCompatibleProvider ¶
func NewCompatibleProvider(name string, proxies []C.Proxy, hc *HealthCheck) (*CompatibleProvider, error)
func (CompatibleProvider) HealthCheck ¶
func (cp CompatibleProvider) HealthCheck()
func (CompatibleProvider) HealthCheckURL ¶ added in v1.18.2
func (cp CompatibleProvider) HealthCheckURL() string
func (CompatibleProvider) MarshalJSON ¶
func (CompatibleProvider) RegisterHealthCheckTask ¶
func (CompatibleProvider) Type ¶
func (cp CompatibleProvider) Type() types.ProviderType
func (CompatibleProvider) VehicleType ¶
func (cp CompatibleProvider) VehicleType() types.VehicleType
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
type HealthCheckOption ¶
type OverrideSchema ¶
type OverrideSchema struct { TFO *bool `provider:"tfo,omitempty"` MPTcp *bool `provider:"mptcp,omitempty"` UDP *bool `provider:"udp,omitempty"` UDPOverTCP *bool `provider:"udp-over-tcp,omitempty"` Up *string `provider:"up,omitempty"` Down *string `provider:"down,omitempty"` DialerProxy *string `provider:"dialer-proxy,omitempty"` SkipCertVerify *bool `provider:"skip-cert-verify,omitempty"` Interface *string `provider:"interface-name,omitempty"` RoutingMark *int `provider:"routing-mark,omitempty"` IPVersion *string `provider:"ip-version,omitempty"` AdditionalPrefix *string `provider:"additional-prefix,omitempty"` AdditionalSuffix *string `provider:"additional-suffix,omitempty"` }
type ProxySchema ¶
type ProxySetProvider ¶
type ProxySetProvider struct {
// contains filtered or unexported fields
}
ProxySetProvider for auto gc
func NewProxySetProvider ¶
func NewProxySetProvider(name string, interval time.Duration, filter string, excludeFilter string, excludeType string, dialerProxy string, override OverrideSchema, vehicle types.Vehicle, hc *HealthCheck) (*ProxySetProvider, error)
func (ProxySetProvider) HealthCheck ¶
func (pp ProxySetProvider) HealthCheck()
func (ProxySetProvider) HealthCheckURL ¶ added in v1.18.2
func (pp ProxySetProvider) HealthCheckURL() string
func (ProxySetProvider) MarshalJSON ¶
func (ProxySetProvider) RegisterHealthCheckTask ¶
func (ProxySetProvider) Type ¶
func (pp ProxySetProvider) Type() types.ProviderType
type SubscriptionInfo ¶
func NewSubscriptionInfo ¶
func NewSubscriptionInfo(userinfo string) (si *SubscriptionInfo, err error)
Click to show internal directories.
Click to hide internal directories.