tailscale/control
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
..
controlbase various: add golangci-lint, fix issues (#7905) 2023-04-17 18:38:24 -04:00
controlclient control/controlclient: flesh out mapSession to break up gigantic method 2023-08-21 10:38:32 -07:00
controlhttp control/controlhttp: remove tstest.Clock from tests (#8830) 2023-08-09 15:03:22 -07:00
controlknobs all: update copyright and license headers 2023-01-27 15:36:29 -08:00