refactor: centralize peer control routing
This commit is contained in:
parent
d443b82f1a
commit
a32cab645f
4 changed files with 218 additions and 126 deletions
|
|
@ -11,12 +11,14 @@ Within `geth-node`, daemon lifecycle code is separated from feature handlers:
|
|||
signal handling, Iroh endpoint startup, the Iroh accept loop, and background
|
||||
live-sync task spawning. `local_control.rs` owns async local `ControlRequest`
|
||||
routing, safe trace-field classification, and named peer/resource/local handler
|
||||
families before delegating to feature implementations. `resource_contracts.rs`
|
||||
records the review boundary for each resource family: resource ID patterns,
|
||||
capabilities, and mutation or host-access points. Runtime registries for
|
||||
pubsub, pipes, and overlays live behind narrow mutex-protected structs in
|
||||
`runtime.rs`. Protected peer-control ALPN dispatch remains a separate refactor
|
||||
target.
|
||||
families before delegating to feature implementations. `peer_control.rs`
|
||||
centralizes inbound Iroh ALPN classification, peer endpoint-address parsing,
|
||||
signed peer-card endpoint binding validation, and authenticated caller context
|
||||
creation for protected peer-control, pipe, SSH-proxy, and overlay paths.
|
||||
`resource_contracts.rs` records the review boundary for each resource family:
|
||||
resource ID patterns, capabilities, and mutation or host-access points. Runtime
|
||||
registries for pubsub, pipes, and overlays live behind narrow mutex-protected
|
||||
structs in `runtime.rs`.
|
||||
|
||||
The local metadata store is SQLite product state. `geth-store` tracks a numeric
|
||||
`schema_version` in the `meta` table and applies ordered migrations up to the
|
||||
|
|
|
|||
Loading…
Reference in a new issue