1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Instance management for reovim servers.
//!
//! This module provides:
//! - [`InstanceInfo`] - Information about a running instance
//! - [`TransportInfo`] - Transport address for connecting to an instance
//! - [`InstanceRegistry`] - File-based registry for instance discovery
//!
//! # Usage
//!
//! ```ignore
//! use reovim_protocol::instance::{InstanceInfo, InstanceRegistry, TransportInfo};
//!
//! // Create registry
//! let registry = InstanceRegistry::new();
//!
//! // Register an instance
//! let info = InstanceInfo::new(
//! "my-project".to_string(),
//! std::process::id(),
//! TransportInfo::tcp("127.0.0.1", 12521),
//! );
//! registry.register(&info)?;
//!
//! // List instances
//! for instance in registry.list()? {
//! println!("{}: {}", instance.name, instance.transport);
//! }
//!
//! // Get specific instance
//! if let Some(info) = registry.get("my-project")? {
//! println!("Found: {}", info.transport);
//! }
//! ```
pub use ;