mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-21 23:20:40 +00:00
Add a `SplitError` for `GetPageSplitter`, with an `Into<tonic::Status>` implementation. This avoids a bunch of boilerplate to convert `GetPageSplitter` errors into `tonic::Status`. Requires #12702. Touches [LKB-191](https://databricks.atlassian.net/browse/LKB-191).
28 lines
832 B
Rust
28 lines
832 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 client;
|
|
mod model;
|
|
mod split;
|
|
|
|
pub use client::Client;
|
|
pub use model::*;
|
|
pub use split::{GetPageSplitter, SplitError};
|