aboutsummaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-16 18:07:08 +0700
committerShulhan <ms@kilabit.info>2024-03-16 18:07:08 +0700
commitf3043736f137e3bd37543af22dbca566db2bee81 (patch)
treea0f1e28fc43d2c45a16c254b093ce211eaf5e4a1 /config.go
parent916d1874a7047162d0894191c0979d47422786a3 (diff)
downloadhaminer-f3043736f137e3bd37543af22dbca566db2bee81.tar.xz
all: comply with all linters recommendations
Some of breaking changes, * Field [Config.HttpUrl] renamed to [Config.HTTPURL] * Field [ConfigForwarder.Url] renamed to [ConfigForwarder.URL] * Struct [HttpLog] renamed to [HTTPLog]
Diffstat (limited to 'config.go')
-rw-r--r--config.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.go b/config.go
index 2c8af49..cc7e9d5 100644
--- a/config.go
+++ b/config.go
@@ -36,7 +36,7 @@ type Config struct {
// output.
RequestHeaders []string `ini:"haminer::capture_request_header"`
- HttpUrl []string `ini:"preprocess:tag:http_url"`
+ HTTPURL []string `ini:"preprocess:tag:http_url"`
// retags contains list of pre-processing rules for tag.
retags []*tagPreprocessor
@@ -127,12 +127,12 @@ func (cfg *Config) parsePreprocessTag() (err error) {
logp = `parsePreprocessTag`
retag *tagPreprocessor
- httpUrl string
+ httpURL string
vals []string
)
- for _, httpUrl = range cfg.HttpUrl {
- vals = strings.Split(httpUrl, "=>")
+ for _, httpURL = range cfg.HTTPURL {
+ vals = strings.Split(httpURL, `=>`)
if len(vals) != 2 {
continue
}