Skip to content

Commit

Permalink
add --source Parameter (#568)
Browse files Browse the repository at this point in the history
* add --source Parameter

* standalone
  • Loading branch information
OleksandrBlack authored Dec 10, 2023
1 parent 4a5558b commit 241a4f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/job/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import (
type GlobalConfig struct {
ClientID string
UserID string
Source string

proxyURLs string
proxylist string
Expand All @@ -69,6 +70,8 @@ func NewGlobalConfigWithFlags() *GlobalConfig {

flag.StringVar(&res.UserID, "user-id", utils.GetEnvStringDefault("USER_ID", ""),
"user id for optional metrics")
flag.StringVar(&res.Source, "source", utils.GetEnvStringDefault("SOURCE", "standalone"),
"run source info")
flag.StringVar(&res.proxyURLs, "proxy", utils.GetEnvStringDefault("SYSTEM_PROXY", ""),
"system proxy to set by default (can be a comma-separated list or a template)")
flag.StringVar(&res.proxylist, "proxylist", "", "file or url to read a list of proxies from")
Expand Down

0 comments on commit 241a4f7

Please sign in to comment.