Skip to content
1 viewer
View

Tunnel reference

0 pages, 6 routes, 4 connections and 0 CLI commands, generated from the declarations of Tunnel without reading storage or running anything.

AboutCode

Code · 0 files

No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.

Connections · 4

Tunnel.Get

Fetch one tunnel registration by (registrant_peer_id, edge_peer_id).

Tunnel.Get input
FieldTypeRequiredDescriptionAllowed
registrant_peer_idrequired
edge_peer_idrequired
2 rows
Calls and output
  • Output keytunnel.result
  • Classificationroute_handler
  • GET /tunnel/detailHTTP route

Tunnel.List

List recent tunnel registrations, optionally filtered by peer_id (matches either the registrant or edge slot).

Calls and output
  • Output keytunnel.result
  • Classificationroute_handler
  • GET /tunnelHTTP route

Tunnel.Register

Register a tunnel relationship between a behind-NAT peer (registrant) and an edge peer that exposes the public URL. Persists a `tunnel.registration_state` vertex + `tunnel.registration` hyperedge linking [v:peer:{registrant}, v:peer:{edge}, v:tunnel.registration:{...}] in hyperdb so the topology is queryable via the same primitives the DHT navigates (shortest_path, k_hop, cycle_detection). Idempotent on (registrant_peer_id, edge_peer_id) — re-register updates timestamps + state without creating duplicates.

Tunnel.Register input
FieldTypeRequiredDescriptionAllowed
edge_peer_idrequired
1 row
Calls and output
  • Output keytunnel.result
  • Classificationreal
  • POST /tunnel/registerHTTP route

Tunnel.Status

Tunnel subsystem health: total registrations, breakdown by status, breakdown by local role (registrant / edge).

Calls and output
  • Output keytunnel.result
  • Classificationroute_handler
  • GET /tunnel/statusHTTP route

Other routes · 2

Routes without a connection
MethodPathKind
GET/peer/{peer_id}/{rest*}raw handler
POST/peer/{peer_id}/{rest*}raw handler
2 rows

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerTunnel
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
  • tunnel.registration_state
Hyper vertex kinds written
  • tunnel.registration_state
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Truth