pub trait GatewayService: Send + Sync + 'static {
    // Required methods
    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§

source

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,

Create creates the given gateway.

source

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,

Get returns the gateway for the given Gateway ID.

source

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,

Update updates the given gateway.

source

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,

Delete deletes the gateway matching the given Gateway ID.

source

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,

Get the list of gateways.

source

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,

Generate client-certificate for the gateway.

source

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,

GetMetrics returns the gateway metrics.

Implementors§