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

Function create_gateway

chirpstack/src/storage/gateway.rs:594–608  ·  view source on GitHub ↗
(id: EUI64)

Source from the content-addressed store, hash-verified

592 }
593
594 pub async fn create_gateway(id: EUI64) -> Gateway {
595 let tenant_id = {
596 let t = storage::tenant::test::create_tenant().await;
597 t.id
598 };
599
600 let gw = Gateway {
601 gateway_id: id,
602 tenant_id,
603 name: "gw".into(),
604 ..Default::default()
605 };
606
607 create(gw).await.unwrap()
608 }
609
610 #[tokio::test]
611 async fn test_gateway() {

Callers 2

test_gatewayFunction · 0.85
test_relay_gatewayFunction · 0.85

Calls 4

create_tenantFunction · 0.85
unwrapMethod · 0.80
createFunction · 0.70
intoMethod · 0.45

Tested by 2

test_gatewayFunction · 0.68
test_relay_gatewayFunction · 0.68