-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d986c0
commit 23e6c9c
Showing
4 changed files
with
68 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
package common | ||
|
||
import "github.com/jonesrussell/page-prowler/internal/crawler" | ||
import ( | ||
"github.com/jonesrussell/page-prowler/internal/crawler" | ||
"github.com/jonesrussell/page-prowler/internal/worker" | ||
) | ||
|
||
type CrawlManagerKeyType = crawler.CrawlManagerInterface | ||
type CrawlerWorkerKeyType = worker.CrawlerWorkerInterface | ||
|
||
var crawlManagerKey crawler.CrawlManagerInterface | ||
var crawlerWorkerKey worker.CrawlerWorkerInterface | ||
|
||
// CrawlManagerKey is the key for storing and retrieving the CrawlManagerInterface from the context. | ||
var CrawlManagerKey = &crawlManagerKey | ||
var CrawlerWorkerKey = &crawlerWorkerKey | ||
|
||
const CrawlManagerKeyStr = "crawlManagerKey" | ||
const CrawlerWorkerKeyStr = "crawlerWorkerKey" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters