1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-10-19 11:15:48 +02:00
juanfont.headscale/cmd/headscale/cli
Kristoffer Dalby 9d236571f4 state/nodestore: in memory representation of nodes
Initial work on a nodestore which stores all of the nodes
and their relations in memory with relationship for peers
precalculated.

It is a copy-on-write structure, replacing the "snapshot"
when a change to the structure occurs. It is optimised for reads,
and while batches are not fast, they are grouped together
to do less of the expensive peer calculation if there are many
changes rapidly.

Writes will block until commited, while reads are never
blocked.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-09-09 09:40:00 +02:00
..
api_key.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
configtest.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
debug.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
dump_config.go add integration test for headscale -c 2022-06-05 23:13:58 +08:00
generate.go feat(aliases): add 'gen' alias for 'generate' command 2022-03-02 14:29:33 +10:00
mockoidc.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
nodes.go state/nodestore: in memory representation of nodes 2025-09-09 09:40:00 +02:00
policy.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
preauthkeys.go fix: change FormatUint base from 64 to 10 in preauthkeys list command (#2588) 2025-05-13 18:40:17 +00:00
pterm_style.go Fix lint 2022-02-12 19:42:55 +00:00
root.go cli: policy check, dont require config or log (#2580) 2025-05-09 23:19:47 +02:00
serve.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
users.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
utils.go bring back last_seen in database (#2579) 2025-05-10 09:49:08 +02:00
version.go add git hash to binary, print on startup (#2415) 2025-02-07 13:49:34 +01:00