1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00
juanfont.headscale/hscontrol/types
Kristoffer Dalby 387aa03adb Remove database from Mapper
This commit changes the internals of the mapper to
track all the changes to peers over its lifetime.

This means that it no longer depends on the database
and this should hopefully help with locks and timing issues.
When the mapper is created, it needs the current list of peers,
the world view, when the polling session was started. Then as
update changes are called, it tracks the changes and generates
responses based on its internal list.

As a side, the types.Machines and types.MachinesP, as well as
types.Machine being passed as a full struct and pointer has been
changed to always be pointers, everywhere.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-09-19 10:20:21 -05:00
..
api_key.go Split code into modules 2023-05-26 12:24:50 +02:00
common.go Remove database from Mapper 2023-09-19 10:20:21 -05:00
config.go General fixups discovered by checking errors 2023-09-05 08:47:43 +02:00
const.go fix lint 2023-06-08 16:34:15 +02:00
machine_test.go Fix IP Address Order Bug 2023-07-23 23:46:02 +02:00
machine.go Remove database from Mapper 2023-09-19 10:20:21 -05:00
preauth_key.go Split code into modules 2023-05-26 12:24:50 +02:00
routes.go Split code into modules 2023-05-26 12:24:50 +02:00
users.go Split code into modules 2023-05-26 12:24:50 +02:00