diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-06-08 13:41:51 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-06-09 07:39:53 +0000 |
commit | 047b641beec9ea62b54789374bae41948bae5d54 (patch) | |
tree | 693806375b498d1702b65636f2bd915f5edfad7c /configd/src/apps/sentinel/connectivity.h | |
parent | 7a7296a89fecd6238bf845741157b6c6971602ff (diff) |
add probes around the corner, take 1
Diffstat (limited to 'configd/src/apps/sentinel/connectivity.h')
-rw-r--r-- | configd/src/apps/sentinel/connectivity.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configd/src/apps/sentinel/connectivity.h b/configd/src/apps/sentinel/connectivity.h index 1c7ee8ddc57..93bc2c865b5 100644 --- a/configd/src/apps/sentinel/connectivity.h +++ b/configd/src/apps/sentinel/connectivity.h @@ -18,13 +18,20 @@ namespace config::sentinel { **/ class Connectivity { public: + struct HostAndPort { + std::string host; + int port; + std::string spec() const; + }; + using SpecMap = std::map<std::string, HostAndPort>; + Connectivity(); ~Connectivity(); void configure(const SentinelConfig::Connectivity &config); bool checkConnectivity(RpcServer &rpcServer); private: SentinelConfig::Connectivity _config; - std::map<std::string, std::string> _checkSpecs; + SpecMap _checkSpecs; std::map<std::string, std::string> _detailsPerHost; }; |