more things

This commit is contained in:
cubixle
2021-07-27 21:09:29 +01:00
parent 2ddeeea267
commit cb8d79fca3
7 changed files with 196 additions and 46 deletions
+7 -8
View File
@@ -8,16 +8,15 @@ import (
func main() {
r, err := l1.NewRunner(
l1.WithTarget("http://google.com"),
l1.WithRunFunc(func(target string) error {
return nil
}),
l1.WithTarget("https://remoteukjobs.com"),
l1.WithRunFunc(l1.DefaultHTTPTester),
l1.WithMaxParrellConns(10),
l1.WithMaxConns(6000),
)
if err != nil {
log.Fatal(err)
}
err = r.Start()
if err != nil {
log.Fatal(err)
}
r.Execute()
results := r.Results()
results.Print()
}