Expand description
Session route control wire contract.
subc has two distinct channel-0 handshakes. Module registration is the
module-to-subc HELLO/HELLO_ACK handshake that registers the manifest and
liveness. Route bind is the client-to-subc-to-module request/response
handshake that binds one client route to a module route channel.
Structs§
- Health
Report - Live
Root - Counts of routes for one canonical project root.
Enums§
- Health
Status - Module
Control Command - One-way subc-to-module channel-0 control command.
- Module
Control Push - Module-to-subc channel-0 push body.
- Module
Control Request - subc-to-module channel-0 control RPC body.
- Module
Control Request From Module - Module-originated channel-0 control RPC body.
- Module
Control Response - Module-to-subc channel-0 response body.
- Module
Control Response ToModule - subc’s channel-0 response body for module-originated control RPCs.
- Role
Versions Error - Why a
role_versionsmap was refused.
Constants§
- MAX_
ROLE_ NAME_ LEN - The longest role name accepted in
role_versions, in bytes. - MAX_
ROLE_ VERSIONS - Most entries a
role_versionsmap may hold. - MODULE_
CONTROL_ OP_ HEALTH_ CHECK - MODULE_
TO_ SUBC_ OP_ CATALOG_ UPDATE - ROLE_
VERSIONS_ FIELD - The wire name of the
role_versionsfield onroute.openandroute.bind, for thedetail.fieldof theinvalid_requesterror that refuses a malformed one.
Functions§
- validate_
role_ versions - Check a
role_versionsmap: at mostMAX_ROLE_VERSIONSentries, each role name matching^[a-z0-9]+(-[a-z0-9]+)*$in at mostMAX_ROLE_NAME_LENbytes, and each version matching^v[1-9][0-9]*$.