Struct chirpstack_api::as_pb::external::api::gateway_service_client::GatewayServiceClient [−][src]
pub struct GatewayServiceClient<T> { /* fields omitted */ }
Expand description
GatewayService is the service managing the gateways.
Implementations
impl<T> GatewayServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> GatewayServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> GatewayServiceClient<InterceptedService<T, F>> where
F: FnMut(Request<()>) -> Result<Request<()>, Status>,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn create(
&mut self,
request: impl IntoRequest<CreateGatewayRequest>
) -> Result<Response<()>, Status>
pub async fn create(
&mut self,
request: impl IntoRequest<CreateGatewayRequest>
) -> Result<Response<()>, Status>
Create creates the given gateway.
pub async fn get(
&mut self,
request: impl IntoRequest<GetGatewayRequest>
) -> Result<Response<GetGatewayResponse>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetGatewayRequest>
) -> Result<Response<GetGatewayResponse>, Status>
Get returns the gateway for the requested mac address.
pub async fn update(
&mut self,
request: impl IntoRequest<UpdateGatewayRequest>
) -> Result<Response<()>, Status>
pub async fn update(
&mut self,
request: impl IntoRequest<UpdateGatewayRequest>
) -> Result<Response<()>, Status>
Update updates the gateway matching the given mac address.
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteGatewayRequest>
) -> Result<Response<()>, Status>
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteGatewayRequest>
) -> Result<Response<()>, Status>
Delete deletes the gateway matching the given mac address.
pub async fn list(
&mut self,
request: impl IntoRequest<ListGatewayRequest>
) -> Result<Response<ListGatewayResponse>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListGatewayRequest>
) -> Result<Response<ListGatewayResponse>, Status>
List lists the gateways.
pub async fn get_stats(
&mut self,
request: impl IntoRequest<GetGatewayStatsRequest>
) -> Result<Response<GetGatewayStatsResponse>, Status>
pub async fn get_stats(
&mut self,
request: impl IntoRequest<GetGatewayStatsRequest>
) -> Result<Response<GetGatewayStatsResponse>, Status>
GetStats lists the gateway stats given the query parameters.
pub async fn get_last_ping(
&mut self,
request: impl IntoRequest<GetLastPingRequest>
) -> Result<Response<GetLastPingResponse>, Status>
pub async fn get_last_ping(
&mut self,
request: impl IntoRequest<GetLastPingRequest>
) -> Result<Response<GetLastPingResponse>, Status>
GetLastPing returns the last emitted ping and gateways receiving this ping.
pub async fn generate_gateway_client_certificate(
&mut self,
request: impl IntoRequest<GenerateGatewayClientCertificateRequest>
) -> Result<Response<GenerateGatewayClientCertificateResponse>, Status>
pub async fn generate_gateway_client_certificate(
&mut self,
request: impl IntoRequest<GenerateGatewayClientCertificateRequest>
) -> Result<Response<GenerateGatewayClientCertificateResponse>, Status>
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.
pub async fn stream_frame_logs(
&mut self,
request: impl IntoRequest<StreamGatewayFrameLogsRequest>
) -> Result<Response<Streaming<StreamGatewayFrameLogsResponse>>, Status>
pub async fn stream_frame_logs(
&mut self,
request: impl IntoRequest<StreamGatewayFrameLogsRequest>
) -> Result<Response<Streaming<StreamGatewayFrameLogsResponse>>, Status>
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.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for GatewayServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for GatewayServiceClient<T> where
T: Send,
impl<T> Sync for GatewayServiceClient<T> where
T: Sync,
impl<T> Unpin for GatewayServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for GatewayServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request