Skip to main content

Crate omp_rpc

Crate omp_rpc 

Source
Expand description

Transport plumbing for the omp gRPC protocol.

The daemon serves local clients over an owner-only Unix-domain socket; omp gateway serve exposes the same services over TCP with mutual TLS. Every connection starts with the gateway Hello handshake. A client rejects a server whose schema revision is older than its own, because protobuf’s unknown-field behavior would otherwise silently discard newer client data.

Liveness and per-service readiness use the standard grpc.health.v1 protocol.

Re-exports§

pub use health::health_service;
pub use hello::HelloService;
pub use hello::MIN_SCHEMA_REV;
pub use hello::Peer;
pub use hello::handshake;
pub use tls::TlsConfig;
pub use tls::client_tls;
pub use tls::server_tls;
pub use uds::Incoming;
pub use uds::connect;
pub use uds::listen;

Modules§

health
Standard gRPC health service integration.
hello
Gateway schema and capability negotiation.
tls
TLS configuration builders for remote TCP gateways.
uds
Unix-domain-socket transport for local daemon connections.

Structs§

HealthReporter
A handle providing methods to update the health status of gRPC services. A HealthReporter is connected to a HealthServer which serves the statuses over the grpc.health.v1.Health service.

Enums§

Error
An RPC transport or protocol-negotiation failure.