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) Touch()
- func (cp CompatibleProvider) Type() types.ProviderType
- func (cp CompatibleProvider) Update() error
- func (cp CompatibleProvider) VehicleType() types.VehicleType
- type FileVehicle
- type FilterableProvider
- func (fp *FilterableProvider) HealthCheck()
- func (fp *FilterableProvider) Initial() error
- func (fp *FilterableProvider) MarshalJSON() ([]byte, error)
- func (fp *FilterableProvider) Name() string
- func (fp *FilterableProvider) Proxies() []C.Proxy
- func (fp *FilterableProvider) Touch()
- func (fp *FilterableProvider) Type() types.ProviderType
- func (fp *FilterableProvider) Update() error
- func (fp *FilterableProvider) VehicleType() types.VehicleType
- type HTTPVehicle
- 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) Touch()
- func (pp ProxySetProvider) Type() types.ProviderType
- func (pp ProxySetProvider) Update() error
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
}
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) Type ¶
func (cp CompatibleProvider) Type() types.ProviderType
func (CompatibleProvider) VehicleType ¶
func (cp CompatibleProvider) VehicleType() types.VehicleType
type FileVehicle ¶
type FileVehicle struct {
// contains filtered or unexported fields
}
func NewFileVehicle ¶
func NewFileVehicle(path string) *FileVehicle
func (*FileVehicle) Path ¶
func (f *FileVehicle) Path() string
func (*FileVehicle) Read ¶
func (f *FileVehicle) Read() ([]byte, error)
func (*FileVehicle) Type ¶
func (f *FileVehicle) Type() types.VehicleType
type FilterableProvider ¶
type FilterableProvider struct {
// contains filtered or unexported fields
}
func NewFilterableProvider ¶
func NewFilterableProvider(name string, providers []types.ProxyProvider, filterReg *regexp.Regexp) *FilterableProvider
func (*FilterableProvider) HealthCheck ¶
func (fp *FilterableProvider) HealthCheck()
func (*FilterableProvider) Initial ¶
func (fp *FilterableProvider) Initial() error
func (*FilterableProvider) MarshalJSON ¶
func (fp *FilterableProvider) MarshalJSON() ([]byte, error)
func (*FilterableProvider) Name ¶
func (fp *FilterableProvider) Name() string
func (*FilterableProvider) Proxies ¶
func (fp *FilterableProvider) Proxies() []C.Proxy
func (*FilterableProvider) Touch ¶
func (fp *FilterableProvider) Touch()
func (*FilterableProvider) Type ¶
func (fp *FilterableProvider) Type() types.ProviderType
func (*FilterableProvider) Update ¶
func (fp *FilterableProvider) Update() error
func (*FilterableProvider) VehicleType ¶
func (fp *FilterableProvider) VehicleType() types.VehicleType
type HTTPVehicle ¶
type HTTPVehicle struct {
// contains filtered or unexported fields
}
func NewHTTPVehicle ¶
func NewHTTPVehicle(url string, path string) *HTTPVehicle
func (*HTTPVehicle) Path ¶
func (h *HTTPVehicle) Path() string
func (*HTTPVehicle) Read ¶
func (h *HTTPVehicle) Read() ([]byte, error)
func (*HTTPVehicle) Type ¶
func (h *HTTPVehicle) Type() types.VehicleType
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
func NewHealthCheck ¶
type HealthCheckOption ¶
type ProxySchema ¶
type ProxySetProvider ¶
type ProxySetProvider struct {
// contains filtered or unexported fields
}
for auto gc
func NewProxySetProvider ¶
func NewProxySetProvider(name string, interval time.Duration, filter string, vehicle types.Vehicle, hc *HealthCheck) (*ProxySetProvider, error)
func (ProxySetProvider) HealthCheck ¶
func (pp ProxySetProvider) HealthCheck()
func (ProxySetProvider) MarshalJSON ¶
func (ProxySetProvider) Type ¶
func (pp ProxySetProvider) Type() types.ProviderType
Click to show internal directories.
Click to hide internal directories.