VictoriaMetrics/lib/httputils
Aliaksandr Valialkin a468a6e985
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:02:34 +02:00
..
array.go app/victoria-logs: add ability to debug data ingestion by passing debug query arg to data ingestion API 2023-06-20 20:02:46 -07:00
bool.go app/vmselect: move common http functionality from app/vmselect/searchutils to lib/httputils 2023-06-19 22:34:20 -07:00
duration_test.go app/vmselect: move common http functionality from app/vmselect/searchutils to lib/httputils 2023-06-19 22:34:20 -07:00
duration.go docs/CHANGELOG.md: document f8207e33a2 2024-02-17 17:52:53 +02:00
int.go app/vmselect: move common http functionality from app/vmselect/searchutils to lib/httputils 2023-06-19 22:34:20 -07:00
time_test.go [lib/httputils] fixed floating-point error when parsing time in RFC3339 format (#5814) 2024-02-22 10:20:54 +01:00
time.go lib/promutils: hide the math.Round() logic inside ParseTimeMsec() function 2024-02-23 00:55:32 +02:00
tls_test.go lib: consistently use f-tests instead of table-driven tests 2024-07-09 22:40:50 +02:00
tls.go lib/httputils: rename CAFile -> caFile in order to be consistent with local var naming in Go 2024-03-17 23:19:52 +02:00