Documentation ¶
Index ¶
- Variables
- 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
- type Getter
- 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
- type TGChannelGetter
- type WebFanqiangdang
- type WebFreessrXyz
- type WebFuzz
- type WebFuzzSub
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorUrlNotFound = errors.New("url should be specified") ErrorCreaterNotSupported = errors.New("type not supported") )
Functions ¶
func AssertTypeStringNotNull ¶
func ClashProxy2ProxyArray ¶
func GrepLinksFromString ¶
func StringArray2ProxyArray ¶
Types ¶
type Getter ¶
type Getter interface { Get() proxy.ProxyList Get2Chan(pc chan proxy.Proxy) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup) }
functions for getters
func NewWebFreessrxyzGetter ¶
type Subscribe ¶
type Subscribe struct {
Url string
}
Subscribe is A Getter with an additional property
type TGChannelGetter ¶
func (*TGChannelGetter) Get ¶
func (g *TGChannelGetter) Get() proxy.ProxyList
func (*TGChannelGetter) Get2Chan ¶
func (g *TGChannelGetter) Get2Chan(pc chan proxy.Proxy)
func (*TGChannelGetter) Get2ChanWG ¶
func (g *TGChannelGetter) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup)
type WebFanqiangdang ¶
type WebFanqiangdang struct { Url string // contains filtered or unexported fields }
func (*WebFanqiangdang) Get ¶
func (w *WebFanqiangdang) Get() proxy.ProxyList
func (*WebFanqiangdang) Get2Chan ¶
func (w *WebFanqiangdang) Get2Chan(pc chan proxy.Proxy)
func (*WebFanqiangdang) Get2ChanWG ¶
func (w *WebFanqiangdang) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup)
type WebFreessrXyz ¶
type WebFreessrXyz struct { }
func (*WebFreessrXyz) Get ¶
func (w *WebFreessrXyz) Get() proxy.ProxyList
func (*WebFreessrXyz) Get2Chan ¶
func (w *WebFreessrXyz) Get2Chan(pc chan proxy.Proxy)
func (*WebFreessrXyz) Get2ChanWG ¶
func (w *WebFreessrXyz) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup)
type WebFuzzSub ¶
type WebFuzzSub struct {
Url string
}
func (*WebFuzzSub) Get ¶
func (w *WebFuzzSub) Get() proxy.ProxyList
func (*WebFuzzSub) Get2Chan ¶
func (w *WebFuzzSub) Get2Chan(pc chan proxy.Proxy)
func (*WebFuzzSub) Get2ChanWG ¶
func (w *WebFuzzSub) Get2ChanWG(pc chan proxy.Proxy, wg *sync.WaitGroup)
Click to show internal directories.
Click to hide internal directories.