headscale/hscontrol/db
Kristoffer Dalby 73023c2ec3 all: use immutable node view in read path
This commit changes most of our (*)types.Node to
types.NodeView, which is a readonly version of the
underlying node ensuring that there is no mutations
happening in the read path.

Based on the migration, there didnt seem to be any, but the
idea here is to prevent it in the future and simplify other
new implementations.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-07-07 21:28:59 +01:00
..
sqliteconfig db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
testdata db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
api_key.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
api_key_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
db.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
db_test.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
ephemeral_garbage_collector_test.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
ip.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
ip_test.go Redo route code (#2422) 2025-02-26 16:22:55 +01:00
node.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
node_test.go all: use immutable node view in read path 2025-07-07 21:28:59 +01:00
policy.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
preauth_keys.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
preauth_keys_test.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
schema.sql db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
suite_test.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
text_serialiser.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
users.go state: introduce state 2025-06-24 07:58:54 +02:00
users_test.go state: introduce state 2025-06-24 07:58:54 +02:00