Documentation ¶
Index ¶
- Constants
- Variables
- func ComputeFuzzy(content []byte) []map[string]any
- func Crawl() bool
- func GetBytes(url string) []byte
- func GetCountryName(keys []string, maps map[string]map[string]any) []map[string]any
- func Register(sourceType string, c collector)
- func SortAddEmoji(proxies []map[string]any)
- func SortAddIndex(proxies []map[string]any) []map[string]any
- func Unique(mappings []map[string]any, needTls bool) (maps map[string]map[string]any)
- type Clash
- type Collect
- type Fuzzy
- type Getter
- type Job
- type ShareLink
- type TimeoutPool
- type V2ray
Constants ¶
View Source
const ( CollectClash = "clash" CollectV2ray = "v2ray" CollectFuzzy = "fuzzy" )
Variables ¶
View Source
var ErrorCreateNotSupported = errors.New("type not supported")
Functions ¶
func ComputeFuzzy ¶
func GetCountryName ¶
func SortAddEmoji ¶
Types ¶
type Collect ¶
type Collect interface { Get() []map[string]any Get2ChanWG(pc chan []map[string]any, wg *sync.WaitGroup) }
func NewClashCollect ¶
func NewFuzzyCollect ¶
func NewShareLinkCollect ¶
func NewV2rayCollect ¶
type TimeoutPool ¶
type TimeoutPool struct {
// contains filtered or unexported fields
}
func NewTimeoutPoolWithDefaults ¶
func NewTimeoutPoolWithDefaults() *TimeoutPool
NewTimeoutPoolWithDefaults 初始化一个任务队列长度512
func (*TimeoutPool) StartAndWait ¶
func (p *TimeoutPool) StartAndWait()
StartAndWait 启动并等待协程池内的运行全部运行结束
func (*TimeoutPool) SubmitWithTimeout ¶
func (p *TimeoutPool) SubmitWithTimeout(job Job, timeout time.Duration)
SubmitWithTimeout 提交一个任务到协程池
func (*TimeoutPool) WaitCount ¶
func (p *TimeoutPool) WaitCount(count int)
Click to show internal directories.
Click to hide internal directories.