headscale/hscontrol
Kristoffer Dalby 4b65cf48d0 Split up MapResponse
This commits extends the mapper with functions for creating "delta"
MapResponses for different purposes (peer changed, peer removed, derp).

This wires up the new state management with a new StateUpdate struct
letting the poll worker know what kind of update to send to the
connected nodes.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-09-19 10:20:21 -05:00
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
db Split up MapResponse 2023-09-19 10:20:21 -05:00
derp move derp_server to derp server module 2023-06-08 16:34:15 +02:00
mapper Split up MapResponse 2023-09-19 10:20:21 -05:00
notifier Split up MapResponse 2023-09-19 10:20:21 -05:00
policy use cmp.Diff instead of reflect.DeepEqual 2023-07-01 21:55:47 +02:00
templates update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
types Split up MapResponse 2023-09-19 10:20:21 -05:00
util use cmp.Diff instead of reflect.DeepEqual 2023-07-01 21:55:47 +02:00
app.go Split up MapResponse 2023-09-19 10:20:21 -05:00
auth.go rename handler files 2023-06-08 16:34:15 +02:00
auth_legacy.go rename handler files 2023-06-08 16:34:15 +02:00
auth_noise.go rename handler files 2023-06-08 16:34:15 +02:00
grpcv1.go rename acl "get" funcs to "expand" for consistency 2023-06-21 10:31:48 +02:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
handler_legacy.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
handler_placeholder.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
handlers.go rename handler files 2023-06-08 16:34:15 +02:00
metrics.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
noise.go move derp.go to derp module 2023-06-08 16:34:15 +02:00
oidc.go add generic logerr func to shorten code 2023-07-01 08:35:04 +01:00
platform_config.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
poll.go Split up MapResponse 2023-09-19 10:20:21 -05:00
poll_legacy.go rename handler files 2023-06-08 16:34:15 +02:00
poll_noise.go rename handler files 2023-06-08 16:34:15 +02:00
suite_test.go move Config definitions into types 2023-06-08 16:34:15 +02:00