summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2025-04-25 14:53:55 -0500
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2025-04-25 16:32:09 -0500
commit66371f392a785173ff02a27e92d8d9d6590acdd2 (patch)
tree92d66bc9e5281f374eae406ace886d2f8bc7a255 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent0cfd643d9515fcf52f3e47ca3f4559e39943495c (diff)
downloadtailscale-66371f392a785173ff02a27e92d8d9d6590acdd2.tar.xz
tailscale-66371f392a785173ff02a27e92d8d9d6590acdd2.zip
feature,ipn/ipnlocal: add profileManager.StateChangeHook
We update profileManager to allow registering a single state (profile+prefs) change hook. This is to invert the dependency between the profileManager and the LocalBackend, so that instead of LocalBackend asking profileManager for the state, we can have profileManager call LocalBackend when the state changes. We also update feature.Hook with a new (*feature.Hook).GetOk method to avoid calling both IsSet and Get. Updates tailscale/corp#28014 Updates #12614 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions