Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AceDarkknight/GoProxyCollector
/ functions
Functions
63 in github.com/AceDarkknight/GoProxyCollector
⨍
Functions
63
◇
Types & classes
12
↓ 14 callers
Method
AddOrUpdate
(string, interface{})
storage/storage.go:7
↓ 10 callers
Function
createBucket
()
storage/boltDbStorage_test.go:23
↓ 10 callers
Function
deleteBucket
()
storage/boltDbStorage_test.go:30
↓ 8 callers
Method
Get
(string)
storage/storage.go:5
↓ 5 callers
Method
Close
()
storage/storage.go:9
↓ 5 callers
Method
Delete
(string)
storage/storage.go:6
↓ 4 callers
Method
GetAll
()
storage/storage.go:8
↓ 4 callers
Method
Next
()
collector/collector.go:8
↓ 2 callers
Method
Get
Get will get the json byte value of key.
storage/boltDbStorage.go:66
↓ 2 callers
Method
GetRandomOne
()
storage/storage.go:10
↓ 2 callers
Function
IsInputMatchRegex
IsInputMatchRegex will verify the input string is match the regex or not. This function will recover the panic if regex can't be parsed.
util/util.go:71
↓ 2 callers
Function
IsIp
IsIp will match the given parameter is ip address or not.
util/util.go:64
↓ 2 callers
Method
Name
()
collector/collector.go:9
↓ 2 callers
Function
NewBoltDbStorage
NewBoltDbStorage will return a boltdb object and error.
storage/boltDbStorage.go:22
↓ 2 callers
Method
Verify
Verify will check the item parse from xml.
collector/collectorConfig.go:50
↓ 1 callers
Method
Collect
(chan<- *result.Result)
collector/collector.go:10
↓ 1 callers
Method
Collector
Collector will generate a collector by the CollectType value in config xml.
collector/collectorConfig.go:65
↓ 1 callers
Method
Exist
(string)
storage/storage.go:4
↓ 1 callers
Function
MakeUrls
MakeUrls will make slice of url using urlFormat and parameters. If urlFormat has incorrect format, return urlFormat itself. If parameters contains emp
util/util.go:90
↓ 1 callers
Function
NewRegexCollector
NewRegexCollector will create a collector who using regular expression to get item.
collector/regexCollector.go:27
↓ 1 callers
Function
NewSelectorCollector
NewRegexCollector will create a collector who using goquery to get item.
collector/selectorCollector.go:30
↓ 1 callers
Function
RandomUA
RandomUA will return a random user agent.
util/util.go:15
↓ 1 callers
Function
VerifyProxyIp
VerifyProxyIp will use given ip and port as proxy, if the proxy is available, return true, otherwise return false.
util/util.go:36
↓ 1 callers
Function
runCollector
runCollector will start to run a collector and save records to storage.
scheduler/scheduler.go:18
↓ 1 callers
Method
sync
Sync will sync the DB's data to memory.
storage/boltDbStorage.go:144
Method
AddOrUpdate
AddOrUpdate will add the value into DB if key is not existed, otherwise update the existing value. Null value will be ignored and the value will be ma
storage/boltDbStorage.go:98
Function
BenchmarkBoltDbStorage_AddOrUpdate
(b *testing.B)
storage/boltDbStorage_bench_test.go:9
Function
BenchmarkBoltDbStorage_AddOrUpdateParallel
(b *testing.B)
storage/boltDbStorage_bench_test.go:20
Function
BenchmarkBoltDbStorage_Get
(b *testing.B)
storage/boltDbStorage_bench_test.go:34
Function
BenchmarkBoltDbStorage_GetParallel
(b *testing.B)
storage/boltDbStorage_bench_test.go:45
Function
BenchmarkBoltDbStorage_GetRandomOneParallel
(b *testing.B)
storage/boltDbStorage_bench_test.go:58
Method
Close
Close will close the DB.
storage/boltDbStorage.go:139
Method
Collect
TODO: Support to more websites.
collector/regexCollector.go:74
Method
Collect
(ch chan<- *result.Result)
collector/selectorCollector.go:89
Method
Delete
Delete the value by the given key.
storage/boltDbStorage.go:79
Method
Exist
Exist will check the given key is existed in DB or not.
storage/boltDbStorage.go:61
Method
GetAll
GetAll will return all key-value in DB.
storage/boltDbStorage.go:122
Method
GetRandomOne
Get one random record.
storage/boltDbStorage.go:162
Method
Name
()
collector/regexCollector.go:69
Method
Name
()
collector/selectorCollector.go:85
Function
NewCollectorConfig
NewCollectorConfig will read collector configuration xml file and parse the xml.
collector/collectorConfig.go:29
Function
NewServer
NewServer will start a new server.
server/server.go:14
Function
NewStorage
()
storage/storage.go:13
Method
Next
()
collector/regexCollector.go:57
Method
Next
()
collector/selectorCollector.go:73
Function
Run
Run will start to run the collectors.
scheduler/scheduler.go:45
Function
SetLogger
NewLogger will load the seelog's configuration file. If file name is not supplied, it will use default configuration.
scheduler/scheduler.go:93
Function
TestBoltDbStorage_AddOrUpdateParallel
(t *testing.T)
storage/boltDbStorage_test.go:130
Function
TestBoltDbStorage_DeleteParallel
(t *testing.T)
storage/boltDbStorage_test.go:165
Function
TestBoltDbStorage_Exist
(t *testing.T)
storage/boltDbStorage_test.go:70
Function
TestBoltDbStorage_Get
(t *testing.T)
storage/boltDbStorage_test.go:36
Function
TestBoltDbStorage_GetAll
(t *testing.T)
storage/boltDbStorage_test.go:101
Function
TestIsInputMatchRegex
(t *testing.T)
util/util_test.go:65
Function
TestIsIp
(t *testing.T)
util/util_test.go:41
Function
TestMakeUrls
(t *testing.T)
util/util_test.go:87
Function
TestRandomUA
(t *testing.T)
util/util_test.go:8
Function
TestVerifyHTTP
(t *testing.T)
util/util_test.go:16
Function
VerifyAndDelete
VerifyAndSave existing Ips to check it's available or not. Delete the unavailable Ips.
verifier/verifier.go:15
Function
VerifyAndSave
Verify ips in channel. Save the available ips.
verifier/verifier.go:41
Function
deleteIp
deleteIp will delete the given ip. Return 200 if succeed. Sample usage: http://localhost:8090/delete?ip=0.0.0.0
server/server.go:55
Function
getIp
getIp will get a random Ip. Sample usage: http://localhost:8090/get
server/server.go:35
Function
init
()
storage/boltDbStorage_test.go:19
Function
main
()
main.go:15