mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-27 12:05:26 +00:00
387aa03adb
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> |
||
---|---|---|
.. | ||
api_key.go | ||
common.go | ||
config.go | ||
const.go | ||
machine_test.go | ||
machine.go | ||
preauth_key.go | ||
routes.go | ||
users.go |