MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / params

Function params

nodedb/src/control/security/session_registry.rs:180–189  ·  view source on GitHub ↗
(user: &str, addr: &str, proto: &str, auth: &str)

Source from the content-addressed store, hash-verified

178 use super::*;
179
180 fn params(user: &str, addr: &str, proto: &str, auth: &str) -> SessionParams {
181 SessionParams {
182 user_id: user.into(),
183 db_user: user.into(),
184 peer_addr: addr.into(),
185 protocol: proto.into(),
186 auth_method: auth.into(),
187 tenant_id: 1,
188 }
189 }
190
191 #[test]
192 fn register_and_kill() {

Callers 4

register_and_killFunction · 0.70
unregister_removesFunction · 0.70
kill_by_ipFunction · 0.70
different_users_isolatedFunction · 0.70

Calls

no outgoing calls

Tested by 4

register_and_killFunction · 0.56
unregister_removesFunction · 0.56
kill_by_ipFunction · 0.56
different_users_isolatedFunction · 0.56