risingwave_pb::connector_service::connector_service_server

Trait ConnectorService

source
pub trait ConnectorService:
    Send
    + Sync
    + 'static {
    type SinkWriterStreamStream: Stream<Item = Result<SinkWriterStreamResponse, Status>> + Send + 'static;
    type SinkCoordinatorStreamStream: Stream<Item = Result<SinkCoordinatorStreamResponse, Status>> + Send + 'static;
    type GetEventStreamStream: Stream<Item = Result<GetEventStreamResponse, Status>> + Send + 'static;

    // Required methods
    fn sink_writer_stream<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<SinkWriterStreamRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SinkWriterStreamStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sink_coordinator_stream<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<SinkCoordinatorStreamRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SinkCoordinatorStreamStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn validate_sink<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ValidateSinkRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ValidateSinkResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_event_stream<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetEventStreamRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::GetEventStreamStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn validate_source<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ValidateSourceRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ValidateSourceResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

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

Required Associated Types§

source

type SinkWriterStreamStream: Stream<Item = Result<SinkWriterStreamResponse, Status>> + Send + 'static

Server streaming response type for the SinkWriterStream method.

source

type SinkCoordinatorStreamStream: Stream<Item = Result<SinkCoordinatorStreamResponse, Status>> + Send + 'static

Server streaming response type for the SinkCoordinatorStream method.

source

type GetEventStreamStream: Stream<Item = Result<GetEventStreamResponse, Status>> + Send + 'static

Server streaming response type for the GetEventStream method.

Required Methods§

source

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

source

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

source

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

source

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

source

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

Implementors§