Versions in this module Expand all Collapse all v1 v1.0.0 Nov 12, 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) 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 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, excludeFilter string, ...) (*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) 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 struct + Download int64 + Expire int64 + Total int64 + Upload int64 + func NewSubscriptionInfo(userinfo string) (si *SubscriptionInfo, err error)