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

Function get_region_network

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

Source from the content-addressed store, hash-verified

914}
915
916pub fn get_region_network(region_id: &str) -> Result<RegionNetwork> {
917 let conf = get();
918 for region in &conf.regions {
919 if region.id == region_id {
920 return Ok(region.network.clone());
921 }
922 }
923
924 Err(anyhow!("Region ID '{}' not found", region_id))
925}
926
927pub fn get_region_gateway(region_id: &str) -> Result<RegionGateway> {
928 let conf = get();

Callers 15

_handleMethod · 0.85
_handle_responseMethod · 0.85
test_update_uplink_listFunction · 0.85
test_update_filter_listFunction · 0.85
test_update_relay_confFunction · 0.85
_handleMethod · 0.85

Calls 1

getFunction · 0.70

Tested by 7

test_update_uplink_listFunction · 0.68
test_update_filter_listFunction · 0.68
test_update_relay_confFunction · 0.68