Skip to main content

confium_daemon/methods/
registry.rs

1//! Registry methods.
2//!
3//! Skeleton handlers pending integration with the `confium-registry`
4//! crate.
5
6use serde_json::{Value, json};
7
8use crate::error::RpcError;
9use crate::server::SharedConfium;
10
11pub async fn registry_install(
12    _cfm: SharedConfium,
13    _params: Value,
14) -> std::result::Result<Value, RpcError> {
15    Err(RpcError::Engine {
16        message: "registry_install is not yet wired (pending registry integration)".to_string(),
17    })
18}
19
20pub async fn registry_search(
21    _cfm: SharedConfium,
22    _params: Value,
23) -> std::result::Result<Value, RpcError> {
24    Ok(json!({ "results": [] }))
25}