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
//! # ScoutQuest Rust SDK
//!
//! This SDK allows easy interaction with ScoutQuest Service Discovery.
//! It provides registration and discovery functionalities
//! for your Rust microservices.
//!
//! ## Usage Example
//!
//! ```rust,no_run
//! use scoutquest_rust::*;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create the client
//! let client = ServiceDiscoveryClient::new("http://localhost:8080")?;
//!
//! // Register the service
//! let options = ServiceRegistrationOptions::new()
//! .with_tags(vec!["api".to_string(), "microservice".to_string()]);
//!
//! client.register_service("user-service", "localhost", 3000, Some(options)).await?;
//!
//! // Discover other services
//! let instance = client.discover_service("user-service", None).await?;
//!
//! // Call another service
//! let response: serde_json::Value = client.get("user-service", "/api/users").await?;
//!
//! Ok(())
//! }
//! ```
pub use ServiceDiscoveryClient;
pub use ScoutQuestError;
pub use *;
pub const VERSION: &str = env!;