preset scraper added

This commit is contained in:
2024-09-10 15:57:48 +03:00
parent bfdfc634e4
commit 0ecf0ddec1
38 changed files with 790 additions and 167 deletions

10
types/constant/config.go Normal file
View File

@@ -0,0 +1,10 @@
package constant
const (
CfgKeyScopeEnable = FlagScopeEnable
CfgKeyConfigDir = "config-dir"
CfgKeySleepBeforeNextIteration = "sleep-before-next-iteration"
CfgKeyEndpoint = "endpoint"
CfgKeyEndpointNext = "endpoint-next"
CfgKeyLevelsToScrape = "levels-to-scrape"
)

View File

@@ -0,0 +1,18 @@
package constant
const (
ScopeRuTracker string = "rutracker"
ScopePrescene string = "prescene"
ScopeWeb string = "web"
ScopeInfo string = "info"
)
const (
RoleConsole string = "console"
RoleWeb string = "web"
)
const (
TagIgnore string = "ignore"
ExternalSourcesTable string = "external_sources"
)

11
types/constant/flag.go Normal file
View File

@@ -0,0 +1,11 @@
package constant
const (
FlagHelp = "help"
FlagHelpShort = "h"
FlagDebug = "debug"
FlagVersion = "version"
FlagVersionShort = "v"
FlagConfigFile = "config-file"
FlagScopeEnable = "scope-enable"
)