summaryrefslogtreecommitdiff
path: root/scrape.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2023-11-02 18:37:11 +0100
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2023-11-02 18:37:11 +0100
commitd2090061c13aff4647999b1d8725f774c9fe599b (patch)
treef323a298a507ed116245abe497f3e8c55d6b24c0 /scrape.go
parentaadd80b3b213988aa5701075f2650198e4066349 (diff)
Refactor stdlib to more generic functions
Diffstat (limited to 'scrape.go')
-rw-r--r--scrape.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/scrape.go b/scrape.go
index 73908b8..4de36d8 100644
--- a/scrape.go
+++ b/scrape.go
@@ -53,7 +53,7 @@ func NewScraper() *Scraper {
type Scraper struct {
ScrapeFunc ScrapeFunc
- LoginFunc func()
+ SetupFunc func()
Script string
Modules []Module
Client *http.Client
@@ -97,8 +97,8 @@ func (s *Scraper) Run() {
}
}
- if s.LoginFunc != nil {
- s.LoginFunc()
+ if s.SetupFunc != nil {
+ s.SetupFunc()
}
go s.scrape()