Expand description
HTTP client for a hosted noether-registry (noether-cloud).
RemoteStageStore implements the sync StageStore trait by calling the
registry REST API with reqwest::blocking. Because StageStore::get and
list must return borrowed references, all active stages are prefetched
into a local MemoryStore at construction time. Writes go to both the
remote registry AND the local cache so the borrows remain valid.
§Usage
use noether_engine::registry_client::RemoteStageStore;
// Explicit URL:
let store = RemoteStageStore::connect("http://localhost:3000", None).unwrap();
// From environment (NOETHER_REGISTRY + optional NOETHER_API_KEY):
if let Some(Ok(store)) = RemoteStageStore::from_env() {
println!("Connected to remote registry");
}Structs§
- Remote
Stage Store - A
StageStorebacked by a remotenoether-registryover HTTP.