Versions in this module Expand all Collapse all v1 v1.0.2 Apr 25, 2024 v1.0.1 Apr 24, 2024 Changes in this version + func ParseProxyGroup(config map[string]any, proxyMap map[string]C.Proxy, ...) (C.ProxyAdapter, error) + type Fallback struct + Hidden bool + Icon string + func NewFallback(option *GroupCommonOption, providers []provider.ProxyProvider) *Fallback + func (f *Fallback) DialContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.Conn, error) + func (f *Fallback) ForceSet(name string) + func (f *Fallback) IsL3Protocol(metadata *C.Metadata) bool + func (f *Fallback) ListenPacketContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.PacketConn, error) + func (f *Fallback) MarshalJSON() ([]byte, error) + func (f *Fallback) Now() string + func (f *Fallback) Set(name string) error + func (f *Fallback) SupportUDP() bool + func (f *Fallback) Unwrap(metadata *C.Metadata, touch bool) C.Proxy + type GroupBase struct + TestTimeout int + func NewGroupBase(opt GroupBaseOption) *GroupBase + func (gb *GroupBase) GetProxies(touch bool) []C.Proxy + func (gb *GroupBase) Touch() + func (gb *GroupBase) URLTest(ctx context.Context, url string, expectedStatus utils.IntRanges[uint16]) (map[string]uint16, error) + type GroupBaseOption struct + TestTimeout int + type GroupCommonOption struct + DisableUDP bool + ExcludeFilter string + ExcludeType string + ExpectedStatus string + Filter string + Hidden bool + Icon string + IncludeAll bool + IncludeAllProviders bool + IncludeAllProxies bool + Interval int + Lazy bool + MaxFailedTimes int + Name string + Proxies []string + TestTimeout int + Type string + URL string + Use []string + type LoadBalance struct + Hidden bool + Icon string + func NewLoadBalance(option *GroupCommonOption, providers []provider.ProxyProvider, strategy string) (lb *LoadBalance, err error) + func (lb *LoadBalance) DialContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (c C.Conn, err error) + func (lb *LoadBalance) IsL3Protocol(metadata *C.Metadata) bool + func (lb *LoadBalance) ListenPacketContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (pc C.PacketConn, err error) + func (lb *LoadBalance) MarshalJSON() ([]byte, error) + func (lb *LoadBalance) SupportUDP() bool + func (lb *LoadBalance) Unwrap(metadata *C.Metadata, touch bool) C.Proxy + type Relay struct + Hidden bool + Icon string + func NewRelay(option *GroupCommonOption, providers []provider.ProxyProvider) *Relay + func (r *Relay) Addr() string + func (r *Relay) DialContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.Conn, error) + func (r *Relay) ListenPacketContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (_ C.PacketConn, err error) + func (r *Relay) MarshalJSON() ([]byte, error) + func (r *Relay) SupportUDP() bool + type SelectAble interface + ForceSet func(name string) + Set func(string) error + type Selector struct + Hidden bool + Icon string + func NewSelector(option *GroupCommonOption, providers []provider.ProxyProvider) *Selector + func (s *Selector) DialContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.Conn, error) + func (s *Selector) ForceSet(name string) + func (s *Selector) IsL3Protocol(metadata *C.Metadata) bool + func (s *Selector) ListenPacketContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.PacketConn, error) + func (s *Selector) MarshalJSON() ([]byte, error) + func (s *Selector) Now() string + func (s *Selector) Set(name string) error + func (s *Selector) SupportUDP() bool + func (s *Selector) Unwrap(metadata *C.Metadata, touch bool) C.Proxy + type URLTest struct + Hidden bool + Icon string + func NewURLTest(option *GroupCommonOption, providers []provider.ProxyProvider, ...) *URLTest + func (u *URLTest) DialContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (c C.Conn, err error) + func (u *URLTest) ForceSet(name string) + func (u *URLTest) IsL3Protocol(metadata *C.Metadata) bool + func (u *URLTest) ListenPacketContext(ctx context.Context, metadata *C.Metadata, opts ...dialer.Option) (C.PacketConn, error) + func (u *URLTest) MarshalJSON() ([]byte, error) + func (u *URLTest) Now() string + func (u *URLTest) Set(name string) error + func (u *URLTest) SupportUDP() bool + func (u *URLTest) URLTest(ctx context.Context, url string, expectedStatus utils.IntRanges[uint16]) (map[string]uint16, error) + func (u *URLTest) Unwrap(metadata *C.Metadata, touch bool) C.Proxy