tailscale/logpolicy
Joe Tsai 15e49db3f6 logpolicy: cleanup options API and allow setting http.Client
This package grew organically over time and
is an awful mix of explicitly declared options and
globally set parameters via environment variables and
other subtle effects.

Add a new Options and TransportOptions type to
allow for the creation of a Policy or http.RoundTripper
with some set of options.
The options struct avoids the need to add yet more
NewXXX functions for every possible combination of
ordered arguments.

The goal of this refactor is to allow specifying the http.Client
to use with the Policy.

Updates tailscale/corp#18177

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2024-03-27 16:08:52 -07:00
..
logpolicy.go logpolicy: cleanup options API and allow setting http.Client 2024-03-27 16:08:52 -07:00
logpolicy_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00