Skip to main content

Crate corium_peer

Crate corium_peer 

Source
Expand description

Peer library: remote connection to a transactor, tx-report handling, local database values, sync, and the segment cache (see docs/architecture.md and docs/design/protocol.md).

A Connection subscribes to the transactor’s tx-report stream and folds every report into an immutable Db value locally; queries never block on the transactor. On disconnect it reconnects and resubscribes from its basis, and the server backfills the gap from the durable log.

Modules§

authz
Serving the authorization database to a peer server.
metrics
Peer-server Prometheus metrics.
segment
Direct blob-store segment access for peers.
server
Peer server: hosts a peer for thin clients over the public PeerServerService gRPC surface (see docs/design/protocol.md).

Structs§

Admin
Catalog (admin) client for a transactor endpoint.
ConnectConfig
Connection configuration.
Connection
A live peer connection to a transactor-hosted database.
IndexPolicySettings
Index-publication pacing fields for Admin::set_index_policy: None in a request leaves the field unchanged; responses set every field to the effective policy.
PeerReport
One transaction applied to the peer’s local database value.
TxResult
Result of a transaction submitted through a peer.

Enums§

PeerError
Peer failure.