MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / get_force_gws_private

Function get_force_gws_private

chirpstack/src/config.rs:905–914  ·  view source on GitHub ↗
(region_id: &str)

Source from the content-addressed store, hash-verified

903}
904
905pub fn get_force_gws_private(region_id: &str) -> Result<bool> {
906 let conf = get();
907 for region in &conf.regions {
908 if region.id == region_id {
909 return Ok(region.gateway.force_gws_private);
910 }
911 }
912
913 Err(anyhow!("region_config_id not found"))
914}
915
916pub fn get_region_network(region_id: &str) -> Result<RegionNetwork> {
917 let conf = get();

Callers 1

Calls 1

getFunction · 0.70

Tested by

no test coverage detected