#pragma once #include #include #include "misc/json.hh" namespace paxos { struct LegislatorConfig { std::string ip; std::string port; std::string name; bool is_self; }; struct ServerConfig { ServerConfig(const std::vector& legislators, const LegislatorConfig& self); std::vector legislators_; LegislatorConfig self_; static ServerConfig parse(char **argv); }; }