mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-18 05:30:37 +00:00
## Problem For the gRPC Pageserver API, we should convert the Protobuf types to stricter, canonical Rust types. Touches https://github.com/neondatabase/neon/issues/11728. ## Summary of changes Adds Rust domain types that mirror the Protobuf types, with conversion and validation.
24 lines
739 B
Rust
24 lines
739 B
Rust
//! This crate provides the Pageserver's page API. It contains:
|
|
//!
|
|
//! * proto/page_service.proto: the Protobuf schema for the page API.
|
|
//! * proto: auto-generated Protobuf types for gRPC.
|
|
//!
|
|
//! This crate is used by both the client and the server. Try to keep it slim.
|
|
|
|
// Code generated by protobuf.
|
|
pub mod proto {
|
|
tonic::include_proto!("page_api");
|
|
|
|
/// File descriptor set for Protobuf schema reflection. This allows using
|
|
/// e.g. grpcurl with the API.
|
|
pub const FILE_DESCRIPTOR_SET: &[u8] =
|
|
tonic::include_file_descriptor_set!("page_api_descriptor");
|
|
|
|
pub use page_service_client::PageServiceClient;
|
|
pub use page_service_server::{PageService, PageServiceServer};
|
|
}
|
|
|
|
mod model;
|
|
|
|
pub use model::*;
|