Versions in this module Expand all Collapse all v0 v0.0.8 Mar 5, 2022 Changes in this version type Result + SpeedNum float64 v0.0.7 Jan 6, 2022 Changes in this version + type ProxyCheck struct + func NewProxyCheck() *ProxyCheck + func (p *ProxyCheck) AddWithClash(nodeUrl string, logic func(result Result) error) error + func (p *ProxyCheck) AddWithLink(nodeUrl string, logic func(result Result) error) error + func (p *ProxyCheck) Check4NodeDetail(proxyUrl string) *Result + func (p *ProxyCheck) CheckWithClash(clashConfig string) (float64, float64, error) + func (p *ProxyCheck) CheckWithLink(nodeUrl string) (float64, float64, error) + func (p *ProxyCheck) Init(maxWorker int) error + func (p *ProxyCheck) SetCheckUrl(checkUrl string) + func (p *ProxyCheck) URLTest(proxy constant.Proxy, rawUrl string) (delay time.Duration, speed float64, err error) + func (p *ProxyCheck) WaitFinish() + type Result struct + Delay float64 + Err error + ProxyUrl string + Speed float64 + type ResultList []*Result + func (ss *ResultList) Pop() (popped **Result) + func (ss ResultList) All(fn func(value *Result) bool) bool + func (ss ResultList) Any(fn func(value *Result) bool) bool + func (ss ResultList) Append(elements ...*Result) ResultList + func (ss ResultList) Bottom(n int) (top ResultList) + func (ss ResultList) Contains(lookingFor *Result) bool + func (ss ResultList) Diff(against ResultList) (added, removed ResultList) + func (ss ResultList) DropTop(n int) (drop ResultList) + func (ss ResultList) Each(fn func(*Result)) ResultList + func (ss ResultList) Equals(rhs ResultList) bool + func (ss ResultList) Extend(slices ...ResultList) (ss2 ResultList) + func (ss ResultList) Filter(condition func(*Result) bool) (ss2 ResultList) + func (ss ResultList) FilterNot(condition func(*Result) bool) (ss2 ResultList) + func (ss ResultList) FindFirstUsing(fn func(value *Result) bool) int + func (ss ResultList) First() *Result + func (ss ResultList) FirstOr(defaultValue *Result) *Result + func (ss ResultList) Float64s() pie.Float64s + func (ss ResultList) Insert(index int, values ...*Result) ResultList + func (ss ResultList) Ints() pie.Ints + func (ss ResultList) JSONBytes() []byte + func (ss ResultList) JSONBytesIndent(prefix, indent string) []byte + func (ss ResultList) JSONString() string + func (ss ResultList) JSONStringIndent(prefix, indent string) string + func (ss ResultList) Join(glue string) (s string) + func (ss ResultList) Last() *Result + func (ss ResultList) LastOr(defaultValue *Result) *Result + func (ss ResultList) Len() int + func (ss ResultList) Map(fn func(*Result) *Result) (ss2 ResultList) + func (ss ResultList) Mode() ResultList + func (ss ResultList) Random(source rand.Source) *Result + func (ss ResultList) Reverse() ResultList + func (ss ResultList) Send(ctx context.Context, ch chan<- *Result) ResultList + func (ss ResultList) SequenceUsing(creator func(int) *Result, params ...int) ResultList + func (ss ResultList) Shift() (*Result, ResultList) + func (ss ResultList) Shuffle(source rand.Source) ResultList + func (ss ResultList) SortStableUsing(less func(a, b *Result) bool) ResultList + func (ss ResultList) SortUsing(less func(a, b *Result) bool) ResultList + func (ss ResultList) Strings() pie.Strings + func (ss ResultList) StringsUsing(transform func(*Result) string) pie.Strings + func (ss ResultList) SubSlice(start int, end int) (subSlice ResultList) + func (ss ResultList) Top(n int) (top ResultList) + func (ss ResultList) Unshift(elements ...*Result) (unshift ResultList)