1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-10-28 10:51:44 +01:00
juanfont.headscale/hscontrol
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
..
assets
capver update capmap and deps for release (#2522) 2025-05-02 22:12:29 +02:00
db state: introduce state 2025-06-24 07:58:54 +02:00
derp feat: add verify client config for embedded DERP (#2260) 2025-06-18 09:24:53 +02:00
dns cmd/hi: fixes and qol (#2649) 2025-06-23 13:43:14 +02:00
mapper state: introduce state 2025-06-24 07:58:54 +02:00
notifier cmd/hi: fixes and qol (#2649) 2025-06-23 13:43:14 +02:00
policy policy: remove v1 code (#2600) 2025-05-20 13:57:26 +02:00
routes Multi network integration tests (#2464) 2025-03-21 11:49:32 +01:00
state state: introduce state 2025-06-24 07:58:54 +02:00
templates web: change node registration parameter order (#2607) 2025-05-21 11:18:53 +02:00
types state: introduce state 2025-06-24 07:58:54 +02:00
util fix webauth + autoapprove routes (#2528) 2025-04-30 07:54:04 +02:00
app.go state: introduce state 2025-06-24 07:58:54 +02:00
auth.go state: introduce state 2025-06-24 07:58:54 +02:00
debug.go state: introduce state 2025-06-24 07:58:54 +02:00
grpcv1_test.go
grpcv1.go state: introduce state 2025-06-24 07:58:54 +02:00
handlers.go state: introduce state 2025-06-24 07:58:54 +02:00
metrics.go Handle /derp/latency-check (#2227) 2024-11-06 15:59:38 +01:00
noise.go state: introduce state 2025-06-24 07:58:54 +02:00
oidc.go state: introduce state 2025-06-24 07:58:54 +02:00
platform_config.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
poll.go state: introduce state 2025-06-24 07:58:54 +02:00
suite_test.go
tailsql.go fix typo in TailSQL's log 2025-05-18 07:15:41 +02:00