api::v1::flow::flow_server

Trait Flow

pub trait Flow:
    Send
    + Sync
    + 'static {
    // Required methods
    fn handle_create_remove<'life0, 'async_trait>(
        &'life0 self,
        request: Request<FlowRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<FlowResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn handle_mirror_request<'life0, 'async_trait>(
        &'life0 self,
        request: Request<InsertRequests>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<FlowResponse>, Status>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with FlowServer.

Required Methods§

fn handle_create_remove<'life0, 'async_trait>( &'life0 self, request: Request<FlowRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<FlowResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Handle the control plane request for creating or removing a flow.

fn handle_mirror_request<'life0, 'async_trait>( &'life0 self, request: Request<InsertRequests>, ) -> Pin<Box<dyn Future<Output = Result<Response<FlowResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Handle the data plane request for inserting or deleting rows only expect RegionRequest to be one of InsertRequests or DeleteRequests other types of RegionRequest will be ignored

Implementors§