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

Function get_algorithms

chirpstack/src/adr/mod.rs:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46pub async fn get_algorithms() -> HashMap<String, String> {
47 let mut out: HashMap<String, String> = HashMap::new();
48
49 let algos = ADR_ALGORITHMS.read().await;
50 for (_, v) in algos.iter() {
51 out.insert(v.get_id(), v.get_name());
52 }
53
54 out
55}
56
57pub async fn handle(algo_id: &str, req: &Request) -> Response {
58 let algos = ADR_ALGORITHMS.read().await;

Callers 1

list_adr_algorithmsMethod · 0.85

Calls 4

iterMethod · 0.80
insertMethod · 0.80
get_idMethod · 0.45
get_nameMethod · 0.45

Tested by

no test coverage detected