1
0
mirror of https://github.com/umputun/reproxy.git synced 2026-04-24 19:13:44 +02:00

5 Commits

Author SHA1 Message Date
Umputun 484901ba0b fix race condition in plugin registration
use separate regErr variable in AfterFunc goroutine to avoid
data race with the err return value
2025-12-06 02:57:08 -06:00
Umputun 089e683067 fix linter warnings after updating golangci-lint config
- add new linter rules to .golangci.yml (errorlint, wrapcheck, testifylint, nestif)
- fix errorlint: use errors.Is/As instead of direct comparison
- fix wrapcheck: wrap errors with context using %w
- fix testifylint: use assert.Len, assert.Empty, assert.True/False, require.ErrorIs
- fix go-require: use assert in goroutines and HTTP handlers
- update CI: add disk space cleanup, bump Go to 1.25, update actions versions
2025-11-26 23:06:35 -06:00
Umputun 34d9f4d1d5 lint: minor warn on deferred close 2023-02-27 00:00:04 -06:00
Umputun c7a2308267 add OverrideHeadersIn and OverrideHeadersOut support
This is an attempt to address #108

Instead of dedicated support of header`s removal it allows to return a flag indicating plugin's full control over headers. With this flag set, the conductor won't mix response headers with originals but rather will count on a plugin to provide all the headers.
2021-09-07 01:53:54 -05:00
Umputun 7139c57766 RPC plugins support (#85)
* wip

* resolve merge artifacts

* full coverage for conductor

* wire plugin conductor to main and proxy

* wip, with separate match handler

* split matching logic with another handler, add initial docs

* move parts of proxy to handlers, add tests

* add headers in to be sent to proxied url

* merged from master

* add example with docker compose

* supress excesive debug reporting 0-9 disabled in docker

* add plugin tests

* randomize test port

* lint: minor warns

* lint: err shadow
2021-06-01 02:56:39 -05:00