Skip to main content

Mountain/IPC/StatusReporter/
ServiceRegistry.rs

1#![allow(non_snake_case)]
2
3//! Service-discovery registry - the map of known services
4//! and the schedule on which discovery refreshes it.
5
6use std::collections::HashMap;
7
8use serde::{Deserialize, Serialize};
9
10use crate::IPC::StatusReporter::ServiceInfo;
11
12#[derive(Debug, Clone, Serialize, Deserialize)]
13pub struct Struct {
14	pub services:HashMap<String, ServiceInfo::Struct>,
15	pub last_discovery:u64,
16	pub discovery_interval:u64,
17}