PolarisHeartbeatGrpc

Trait PolarisHeartbeatGrpc 

Source
pub trait PolarisHeartbeatGrpc:
    Send
    + Sync
    + 'static {
    type BatchHeartbeatStream: Stream<Item = Result<HeartbeatsResponse, Status>> + Send + 'static;

    // Required methods
    fn batch_heartbeat<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<HeartbeatsRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::BatchHeartbeatStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn batch_get_heartbeat<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetHeartbeatsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetHeartbeatsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn batch_del_heartbeat<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DelHeartbeatsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<DelHeartbeatsResponse>, 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 PolarisHeartbeatGrpcServer.

Required Associated Types§

Source

type BatchHeartbeatStream: Stream<Item = Result<HeartbeatsResponse, Status>> + Send + 'static

Server streaming response type for the BatchHeartbeat method.

Required Methods§

Source

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

被调方批量上报心跳

Source

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

批量获取心跳记录

Source

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

批量删除心跳记录

Implementors§