Skip to content

Commit

Permalink
Organize global vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
wi1dcard committed Feb 22, 2024
1 parent 61a6455 commit dd7909d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions fingerproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ const (
ReverseProxyFlushInterval = 100 * time.Millisecond
)

var (
// values from CI build
BuildCommit = "GIT_COMMIT_PLACEHOLDER"
BuildTag = "GIT_TAG_PLACEHOLDER"
)

var (
ProxyServerLog = log.New(os.Stderr, "[proxyserver] ", logFlags)
HTTPServerLog = log.New(os.Stderr, "[http] ", logFlags)
Expand All @@ -41,11 +47,7 @@ var (

PrometheusRegistry = prometheus.NewRegistry()

GetHeaderInjectors = DefaultHeaderInjectors

BuildCommit = "GIT_COMMIT_PLACEHOLDER"
BuildTag = "GIT_TAG_PLACEHOLDER"

GetHeaderInjectors = DefaultHeaderInjectors
DefaultReverseProxyHTTPHandler = defaultReverseProxyHTTPHandler
)

Expand Down

0 comments on commit dd7909d

Please sign in to comment.