Versions in this module Expand all Collapse all v0 v0.2.0 May 10, 2024 v0.1.0 Aug 26, 2023 Changes in this version + const ReservedName + func ParseProxyProvider(name string, mapping map[string]interface{}) (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) ProxiesWithTouch() []C.Proxy + 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 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]interface{} + 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) ProxiesWithTouch() []C.Proxy + func (pp ProxySetProvider) Type() types.ProviderType + func (pp ProxySetProvider) Update() error