VictoriaMetrics/lib/httputils
Aliaksandr Valialkin 476bf400ac
lib/{httputils,netutil}: move httputils.GetStatDialFunc to netutil.NewStatDialFunc
- Rename GetStatDialFunc to NewStatDialFunc, since it returns new function with every call
- NewStatDialFunc isn't related to http in any way, so it must be moved from lib/httputils to lib/netutil
- Simplify the implementation of NewStatDialFunc by removing sync.Map from there.
- Use netutil.NewStatDialFunc at app/vmauth and lib/promscrape/discoveryutils
- Use gauge instead of counter type for *_conns metric

This is a follow-up for d7b5062917
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6299
2024-07-15 23:05:46 +02:00
..
array.go app/victoria-logs: add ability to debug data ingestion by passing debug query arg to data ingestion API 2023-07-06 21:19:58 -07:00
bool.go
duration_test.go
duration.go docs/CHANGELOG.md: document f8207e33a2 2024-02-17 17:55:01 +02:00
int.go
time_test.go [lib/httputils] fixed floating-point error when parsing time in RFC3339 format (#5814) 2024-02-23 00:58:26 +02:00
time.go lib/promutils: hide the math.Round() logic inside ParseTimeMsec() function 2024-02-23 01:21:42 +02:00
tls_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:39:13 +02:00
tls.go lib/httputils: rename CAFile -> caFile in order to be consistent with local var naming in Go 2024-03-17 23:31:53 +02:00