getter

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuzzParseProxyFromString

func FuzzParseProxyFromString(text string) []proxy.Proxy

func GrepLinksFromString

func GrepLinksFromString(text string) []string

func Register

func Register(sourceType string, c creator)

func String2Proxy

func String2Proxy(link string) proxy.Proxy

func StringArray2ProxyArray

func StringArray2ProxyArray(origin []string) []proxy.Proxy

Types

type Getter

type Getter interface {
	Get() []proxy.Proxy
	Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup)
}

func NewGetter

func NewGetter(sourceType string, options tool.Options) Getter

func NewSubscribe

func NewSubscribe(options tool.Options) Getter

func NewTGChannelGetter

func NewTGChannelGetter(options tool.Options) Getter

func NewWebFanqiangdangGetter

func NewWebFanqiangdangGetter(options tool.Options) Getter

func NewWebFreessrxyzGetter

func NewWebFreessrxyzGetter(options tool.Options) Getter

func NewWebFuzzGetter

func NewWebFuzzGetter(options tool.Options) Getter

func NewWebLucnorg

func NewWebLucnorg(options tool.Options) Getter

type Subscribe

type Subscribe struct {
	Url string
}

func (*Subscribe) Get

func (s *Subscribe) Get() []proxy.Proxy

func (*Subscribe) Get2Chan

func (s *Subscribe) Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup)

type TGChannelGetter

type TGChannelGetter struct {
	NumNeeded int

	Url string
	// contains filtered or unexported fields
}

func (*TGChannelGetter) Get

func (g *TGChannelGetter) Get() []proxy.Proxy

func (*TGChannelGetter) Get2Chan

func (g *TGChannelGetter) Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup)

type WebFanqiangdang

type WebFanqiangdang struct {
	NumNeeded int
	Url       string
	// contains filtered or unexported fields
}

func (*WebFanqiangdang) Get

func (w *WebFanqiangdang) Get() []proxy.Proxy

func (*WebFanqiangdang) Get2Chan

func (w *WebFanqiangdang) Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup)

type WebFreessrXyz

type WebFreessrXyz struct {
}

func (*WebFreessrXyz) Get

func (w *WebFreessrXyz) Get() []proxy.Proxy

func (*WebFreessrXyz) Get2Chan

func (w *WebFreessrXyz) Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup)

type WebFuzz

type WebFuzz struct {
	Url string
}

func (*WebFuzz) Get

func (w *WebFuzz) Get() []proxy.Proxy

func (*WebFuzz) Get2Chan

func (w *WebFuzz) Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup)

type WebLucnOrg

type WebLucnOrg struct {
}

func (*WebLucnOrg) Get

func (w *WebLucnOrg) Get() []proxy.Proxy

func (*WebLucnOrg) Get2Chan

func (w *WebLucnOrg) Get2Chan(pc chan proxy.Proxy, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL