code wiki / _hdl_build / nx_apistack_configpush.nx
nx_apistack_configpush.nx
buildroot/runtime/_hdl_build/nx_apistack_configpush.nx
about
nx_apistack_configpush.nx -- CAP-API-CONFIGPUSH: declarative config push + hot-reload over /api. A caller POSTs new
config; cp_apply writes it and returns its GENERATION (FNV of the bytes). A daemon compares cp_current_gen against
its last-seen gen to detect a change and hot-reload -- config-as-data, reproducible, no restart, git-less (the
sovereign exceed over cloud config services). Same content -> same gen (idempotent reload). license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_apistack_configpush_gate.nx
structs
| none |
consts
| 6 | const K_MAGIC_3750763034362895579: i64 = 3750763034362895579 |
| 7 | const K_MAGIC_1099511628211: i64 = 1099511628211 |
| 8 | const K_MAGIC_262144: i64 = 262144 |
functions
| 10 | func cp_fnv(s: *u8, n: i64) -> i64 |
| 15 | func cp_read_file(path: *u8, out: *u8, cap: i64) -> i64 |
| 22 | func cp_apply(path: *u8, content: *u8, n: i64) -> i64 |
| 28 | func cp_current_gen(path: *u8) -> i64 |