preset scraper added
This commit is contained in:
10
types/constant/config.go
Normal file
10
types/constant/config.go
Normal 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"
|
||||
)
|
||||
18
types/constant/constants.go
Normal file
18
types/constant/constants.go
Normal 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
11
types/constant/flag.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package constant
|
||||
|
||||
const (
|
||||
FlagHelp = "help"
|
||||
FlagHelpShort = "h"
|
||||
FlagDebug = "debug"
|
||||
FlagVersion = "version"
|
||||
FlagVersionShort = "v"
|
||||
FlagConfigFile = "config-file"
|
||||
FlagScopeEnable = "scope-enable"
|
||||
)
|
||||
Reference in New Issue
Block a user