Skip to main content

Crate appcore_peer_rpc

Crate appcore_peer_rpc 

Source
Expand description

Direct peer RPC contracts for private AppCore-to-AppCore calls.

Modules§

v1
Stable peer RPC wire contracts.

Structs§

BoundedReplayStore
Process-local TTL replay store with LRU ordering and fail-closed capacity.
CancellationToken
Cloneable cooperative cancellation flag.
FilePeerNonceStore
Durable process-safe nonce store for Runtime instances sharing one volume.
HashTokenPeerAuthenticator
Peer authenticator backed by AppCore’s signed local token provider.
HashTokenPeerTokenIssuer
Token issuer backed by AppCore’s signed local token provider.
InMemoryPeerNonceStore
Bounded process-local nonce store used by embedded and test deployments.
PeerAdvertisementV1
Stable peer advertisement independent of internal core-manifest layout.
PeerCapabilityV1
Generic capability advertised by a peer.
PeerEndpointV1
Public endpoint advertised by a peer.
PeerHealthResponse
Response returned by the peer health endpoint.
PeerIdentityV1
Identity fields carried by a V1 peer advertisement.
PeerManifestResponse
Response returned by the peer manifest endpoint.
PeerRpcClient
Authenticated client for stable peer query, command, and diagnostic endpoints.
PeerRpcClientConfig
Runtime limits used by PeerRpcClient.
PeerRpcEnvelope
Authenticated peer request envelope.
PeerRpcHttpHost
HTTP host exposing the stable peer health, manifest, query, and command routes.
PeerRpcHttpRequest
HTTP request emitted through a PeerTransportProvider.
PeerRpcHttpResponse
Bounded response returned by a PeerTransportProvider.
PeerRpcHttpState
Shared immutable state used by the peer RPC HTTP router.
PeerRpcOutboundRequest
Provider-neutral request passed to a peer client executor.
PeerRpcResponse
Response returned for a peer query or command.
PeerRpcRetryPolicy
Retry limits and exponential backoff bounds for peer requests.
PeerRpcValidationConfig
Validation limits and local identity expected by the peer RPC host.
PeerRpcValidator
Stateful validator for peer identity, protocol, expiry, integrity, and replay.
ReplayStoreConfig
Capacity, TTL, and cleanup policy for a replay store.
ReplayStoreMetrics
Point-in-time replay-store metrics.
StdPeerRpcTransport
Bounded shared HTTP and HTTPS transport for peer RPC clients.

Enums§

PeerRpcCallKind
Kind of direct peer call.
PeerRpcError
Provider-independent peer RPC failure.

Constants§

PEER_COMMAND_PATH
Authenticated peer command endpoint.
PEER_HEALTH_PATH
Public authenticated peer health endpoint.
PEER_MANIFEST_PATH
Public authenticated peer manifest endpoint.
PEER_QUERY_PATH
Authenticated peer query endpoint.

Traits§

PeerNonceStore
Atomic replay protection used by crate::PeerRpcValidator.
PeerRpcAuthenticator
Validates credentials supplied to peer RPC endpoints.
PeerRpcClientExecutor
Provider contract used to invoke a direct peer endpoint.
PeerRpcDispatcher
Host integration contract for application-owned peer query and command handling.
PeerRpcTokenIssuer
Issues short-lived credentials bound to peer requests.
PeerTransportProvider
Peer transport provider used by RPC clients to reach a peer endpoint.
ReplayStore
Replay protection with explicit cleanup and observable bounds.

Functions§

envelope_signing_hash
Hash signed by peer bearer tokens. It binds routing metadata and payload integrity.
payload_hash
Returns the hexadecimal SHA-256 digest of an application payload.
route_for_command
Returns the stable command endpoint path.
route_for_query
Returns the stable query endpoint path.