1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-10-10 11:14:24 +02:00
juanfont.headscale/hscontrol/types
Kristoffer Dalby 1553f0ab53 state: introduce state
this commit moves all of the read and write logic, and all different parts
of headscale that manages some sort of persistent and in memory state into
a separate package.

The goal of this is to clearly define the boundry between parts of the app
which accesses and modifies data, and where it happens. Previously, different
state (routes, policy, db and so on) was used directly, and sometime passed to
functions as pointers.

Now all access has to go through state. In the initial implementation,
most of the same functions exists and have just been moved. In the future
centralising this will allow us to optimise bottle necks with the database
(in memory state) and make the different parts talking to eachother do so
in the same way across headscale components.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-06-24 07:58:54 +02:00
..
testdata Restore support for "Override local DNS" (#2438) 2025-04-17 17:16:59 +02:00
api_key.go Split code into modules 2023-05-26 12:24:50 +02:00
common.go fix double login URL with OIDC (#2445) 2025-02-25 18:16:07 +01:00
config_test.go config: disallow same server url and base_domain (#2544) 2025-04-23 16:24:38 +02:00
config.go feat: add verify client config for embedded DERP (#2260) 2025-06-18 09:24:53 +02:00
const.go improve testing of route failover logic 2024-04-15 12:31:53 +02:00
node_test.go Make matchers part of the Policy interface (#2514) 2025-05-01 07:06:30 +02:00
node.go bring back last_seen in database (#2579) 2025-05-10 09:49:08 +02:00
policy.go feat: implements apis for managing headscale policy (#1792) 2024-07-18 07:38:25 +02:00
preauth_key_test.go state: introduce state 2025-06-24 07:58:54 +02:00
preauth_key.go state: introduce state 2025-06-24 07:58:54 +02:00
routes.go Redo route code (#2422) 2025-02-26 16:22:55 +01:00
users_test.go users: harden, test, and add cleaner of identifier (#2593) 2025-05-14 16:45:14 +02:00
users.go users: harden, test, and add cleaner of identifier (#2593) 2025-05-14 16:45:14 +02:00
version.go add git hash to binary, print on startup (#2415) 2025-02-07 13:49:34 +01:00