Versions in this module Expand all Collapse all v1 v1.19.0 Nov 25, 2023 Changes in this version + const ReservedName + func ParseProxyProvider(name string, mapping map[string]any) (types.ProxyProvider, error) + type CompatibleProvider struct + func NewCompatibleProvider(name string, proxies []C.Proxy, hc *HealthCheck) (*CompatibleProvider, error) + 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 struct + func NewFileVehicle(path string) *FileVehicle + func (f *FileVehicle) Path() string + func (f *FileVehicle) Read() ([]byte, error) + func (f *FileVehicle) Type() types.VehicleType + type FilterableProvider struct + func NewFilterableProvider(name string, providers []types.ProxyProvider, filterReg *regexp.Regexp) *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 struct + func NewHTTPVehicle(url string, path string) *HTTPVehicle + func (h *HTTPVehicle) Path() string + func (h *HTTPVehicle) Read() ([]byte, error) + func (h *HTTPVehicle) Type() types.VehicleType + type HealthCheck struct + func NewHealthCheck(proxies []C.Proxy, url string, interval uint, lazy bool) *HealthCheck + type HealthCheckOption struct + Interval uint + URL string + type ProxySchema struct + Proxies []map[string]any + type ProxySetProvider struct + func NewProxySetProvider(name string, interval time.Duration, filter string, vehicle types.Vehicle, ...) (*ProxySetProvider, error) + 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