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§
Sourcetype BatchHeartbeatStream: Stream<Item = Result<HeartbeatsResponse, Status>> + Send + 'static
type BatchHeartbeatStream: Stream<Item = Result<HeartbeatsResponse, Status>> + Send + 'static
Server streaming response type for the BatchHeartbeat method.
Required Methods§
Sourcefn 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_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,
被调方批量上报心跳
Sourcefn 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_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,
批量获取心跳记录
Sourcefn 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,
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,
批量删除心跳记录