MCPcopy Create free account
hub / github.com/YougLin-dev/amp-server / get_amp_api_key

Function get_amp_api_key

api/src/lib.rs:20–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18static GOOGLE_API_KEY: OnceLock<String> = OnceLock::new();
19
20pub fn get_amp_api_key() -> &'static str {
21 AMP_API_KEY.get().expect("AMP_API_KEY not initialized")
22}
23
24pub fn get_google_api_key() -> Option<&'static str> {
25 GOOGLE_API_KEY.get().map(|s| s.as_str())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected