tailscale/control/controlclient
Brad Fitzpatrick b5ff68a968 control/controlclient: flesh out mapSession to break up gigantic method
Now mapSession has a bunch more fields and methods, rather than being
just one massive func with a ton of local variables.

So far there are no major new optimizations, though. It should behave
the same as before.

This has been done with an eye towards testability (so tests can set
all the callback funcs as needed, or not, without a huge Direct client
or long-running HTTP requests), but this change doesn't add new tests
yet. That will follow in the changes which flesh out the NetmapUpdater
interface.

Updates #1909

Change-Id: Iad4e7442d5bbbe2614bd4b1dc4b02e27504898df
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-08-21 10:38:32 -07:00
..
auto.go control/controlclient: move lastUpdateGenInformed to tighter scope 2023-08-13 10:39:17 -07:00
client.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
controlclient_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
direct_test.go control/controlclient: add Auto.updateRoutine 2023-08-10 12:23:08 -07:00
direct.go control/controlclient: flesh out mapSession to break up gigantic method 2023-08-21 10:38:32 -07:00
map_test.go control/controlclient: flesh out mapSession to break up gigantic method 2023-08-21 10:38:32 -07:00
map.go control/controlclient: flesh out mapSession to break up gigantic method 2023-08-21 10:38:32 -07:00
noise_test.go control/controlclient: use dnscache.Resolver for Noise client 2023-05-01 13:22:10 -07:00
noise.go control: use tstime instead of time (#8595) 2023-08-04 19:29:44 -04:00
sign_supported_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
sign_supported.go control: use tstime instead of time (#8595) 2023-08-04 19:29:44 -04:00
sign_unsupported.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
sign.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
status.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00