[][src]Trait chirpstack_api::as_pb::external::api::gateway_service_server::GatewayService

pub trait GatewayService: Send + Sync + 'static {
    type StreamFrameLogsStream: Stream<Item = Result<StreamGatewayFrameLogsResponse, Status>> + Send + Sync + 'static;
#[must_use]    fn create<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetGatewayResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn list<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListGatewayRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListGatewayResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_stats<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetGatewayStatsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetGatewayStatsResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_last_ping<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLastPingRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetLastPingResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn generate_gateway_client_certificate<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GenerateGatewayClientCertificateRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GenerateGatewayClientCertificateResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn stream_frame_logs<'life0, 'async_trait>(
        &'life0 self,
        request: Request<StreamGatewayFrameLogsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamFrameLogsStream>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

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

Associated Types

type StreamFrameLogsStream: Stream<Item = Result<StreamGatewayFrameLogsResponse, Status>> + Send + Sync + 'static

Server streaming response type for the StreamFrameLogs method.

Loading content...

Required methods

#[must_use]fn create<'life0, 'async_trait>(
    &'life0 self,
    request: Request<CreateGatewayRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Create creates the given gateway.

#[must_use]fn get<'life0, 'async_trait>(
    &'life0 self,
    request: Request<GetGatewayRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetGatewayResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Get returns the gateway for the requested mac address.

#[must_use]fn update<'life0, 'async_trait>(
    &'life0 self,
    request: Request<UpdateGatewayRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Update updates the gateway matching the given mac address.

#[must_use]fn delete<'life0, 'async_trait>(
    &'life0 self,
    request: Request<DeleteGatewayRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Delete deletes the gateway matching the given mac address.

#[must_use]fn list<'life0, 'async_trait>(
    &'life0 self,
    request: Request<ListGatewayRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ListGatewayResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

List lists the gateways.

#[must_use]fn get_stats<'life0, 'async_trait>(
    &'life0 self,
    request: Request<GetGatewayStatsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetGatewayStatsResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

GetStats lists the gateway stats given the query parameters.

#[must_use]fn get_last_ping<'life0, 'async_trait>(
    &'life0 self,
    request: Request<GetLastPingRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GetLastPingResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

GetLastPing returns the last emitted ping and gateways receiving this ping.

#[must_use]fn generate_gateway_client_certificate<'life0, 'async_trait>(
    &'life0 self,
    request: Request<GenerateGatewayClientCertificateRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<GenerateGatewayClientCertificateResponse>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. This endpoint can ony be used when ChirpStack Network Server is configured with a gateway CA certificate and key, which is used for signing the TLS certificate. The returned TLS certificate will have the Gateway ID as Common Name.

#[must_use]fn stream_frame_logs<'life0, 'async_trait>(
    &'life0 self,
    request: Request<StreamGatewayFrameLogsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamFrameLogsStream>, Status>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

StreamFrameLogs streams the uplink and downlink frame-logs for the given gateway ID. Notes:

  • These are the raw LoRaWAN frames and this endpoint is intended for debugging only.
  • This endpoint does not work from a web-browser.
Loading content...

Implementors

Loading content...