Documentation ¶
Index ¶
- Constants
- func ParseProxyProvider(name string, mapping map[string]any) (types.ProxyProvider, error)
- type CompatibleProvider
- func (cp CompatibleProvider) HealthCheck()
- 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 ProxySchema
- type ProxySetProvider
- func (pp ProxySetProvider) HealthCheck()
- 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) 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 ProxySchema ¶
type ProxySetProvider ¶
type ProxySetProvider struct {
// contains filtered or unexported fields
}
ProxySetProvider for auto gc
func NewProxySetProvider ¶
func (ProxySetProvider) HealthCheck ¶
func (pp ProxySetProvider) HealthCheck()
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.