MCPcopy
hub / github.com/zu1k/proxypool / GetAllProxies

Function GetAllProxies

internal/database/proxy.go:53–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func GetAllProxies() (proxies proxy.ProxyList) {
54 proxies = make(proxy.ProxyList, 0)
55 if DB == nil {
56 return
57 }
58
59 proxiesDB := make([]Proxy, 0)
60 DB.Select("link").Find(&proxiesDB)
61
62 for _, proxyDB := range proxiesDB {
63 if proxiesDB != nil {
64 proxies = append(proxies, getter.String2Proxy(proxyDB.Link))
65 }
66 }
67 return
68}

Callers 1

CrawlGoFunction · 0.92

Calls 2

String2ProxyFunction · 0.92
FindMethod · 0.80

Tested by

no test coverage detected