Versions in this module Expand all Collapse all v0 v0.0.0 Nov 17, 2022 Changes in this version + var ErrorCreaterNotSupported = errors.New("type not supported") + var ErrorUrlNotFound = errors.New("url should be specified") + func AssertTypeStringNotNull(i interface{}) (str string, err error) + func ClashProxy2ProxyArray(origin []map[string]interface{}) proxy.ProxyList + func FuzzParseProxyFromString(text string) proxy.ProxyList + func GrepLinksFromString(text string) []string + func Register(sourceType string, c creator) + func StringArray2ProxyArray(origin []string) proxy.ProxyList + type Clash struct + Url string + func (c *Clash) Get() proxy.ProxyList + func (c *Clash) Get2Chan(pc chan proxy.Proxy) + func (c *Clash) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup) + type Getter interface + Get func() proxy.ProxyList + Get2Chan func(pc chan proxy.Proxy) + Get2ChanWG func(pc chan proxy.Proxy, wg *sync.WaitGroup) + func NewClashGetter(options tool.Options) (getter Getter, err error) + func NewGetter(sourceType string, options tool.Options) (getter Getter, err error) + func NewSubscribe(options tool.Options) (getter Getter, err error) + func NewTGChannelGetter(options tool.Options) (getter Getter, err error) + func NewWebFanqiangdangGetter(options tool.Options) (getter Getter, err error) + func NewWebFreessrxyzGetter(options tool.Options) (getter Getter, err error) + func NewWebFuzzGetter(options tool.Options) (getter Getter, err error) + func NewWebFuzzSubGetter(options tool.Options) (getter Getter, err error) + type Subscribe struct + Url string + func (s *Subscribe) Get() proxy.ProxyList + func (s *Subscribe) Get2Chan(pc chan proxy.Proxy) + func (s *Subscribe) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup) + type TGChannelGetter struct + NumNeeded int + Url string + func (g *TGChannelGetter) Get() proxy.ProxyList + func (g *TGChannelGetter) Get2Chan(pc chan proxy.Proxy) + func (g *TGChannelGetter) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup) + type WebFanqiangdang struct + Url string + func (w *WebFanqiangdang) Get() proxy.ProxyList + func (w *WebFanqiangdang) Get2Chan(pc chan proxy.Proxy) + func (w *WebFanqiangdang) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup) + type WebFreessrXyz struct + func (w *WebFreessrXyz) Get() proxy.ProxyList + func (w *WebFreessrXyz) Get2Chan(pc chan proxy.Proxy) + func (w *WebFreessrXyz) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup) + type WebFuzz struct + Url string + func (w *WebFuzz) Get() proxy.ProxyList + func (w *WebFuzz) Get2Chan(pc chan proxy.Proxy) + func (w *WebFuzz) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup) + type WebFuzzSub struct + Url string + func (w *WebFuzzSub) Get() proxy.ProxyList + func (w *WebFuzzSub) Get2Chan(pc chan proxy.Proxy) + func (w *WebFuzzSub) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup)