pub trait GatewayService: Send + Sync + 'static {
    fn create<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn get<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetGatewayResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn update<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn list<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListGatewaysRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListGatewaysResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn generate_client_certificate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GenerateGatewayClientCertificateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GenerateGatewayClientCertificateResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn get_metrics<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetGatewayMetricsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetGatewayMetricsResponse>, 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 GatewayServiceServer.

Required Methods§

Create creates the given gateway.

Get returns the gateway for the given Gateway ID.

Update updates the given gateway.

Delete deletes the gateway matching the given Gateway ID.

Get the list of gateways.

Generate client-certificate for the gateway.

GetMetrics returns the gateway metrics.

Implementors§