MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-plugin/src/subprocess/auth.rs:50–57  ·  view source on GitHub ↗
(client: Arc<PluginSubprocess>, meta: AuthMeta)

Source from the content-addressed store, hash-verified

48
49impl PluginAuthBridge {
50 pub fn new(client: Arc<PluginSubprocess>, meta: AuthMeta) -> Self {
51 Self {
52 client,
53 meta,
54 has_custom_fetch: std::sync::atomic::AtomicBool::new(false),
55 cached_api_key: tokio::sync::RwLock::new(None),
56 }
57 }
58
59 // -- Accessors ----------------------------------------------------------
60

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected