|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
44 const boost::property_tree::ptree &cfg,
CoreUtilsPtr utils);
51 virtual void run()
override;
54 using TimePoint = std::chrono::system_clock::time_point;
std::string pubkey_
Master server's public key.
void start_sync()
Launch the tasks so that the synchronisation may take place.
Base class for module implementation.
void replicate()
Start the replication process.
ReplicationModule(zmqpp::context &ctx, zmqpp::socket *pipe, const boost::property_tree::ptree &cfg, CoreUtilsPtr utils)
This is the header file for a generated source file, GitSHA1.cpp.
bool fetch_local_version(uint64_t &local)
Fetch the local configuration version by running a task in the main thread.
std::chrono::system_clock::time_point TimePoint
ReplicationModule & operator=(const ReplicationModule &)=delete
int delay_
Delay between 2 replications attempt.
std::string endpoint_
Target master server.
virtual void run() override
This is the main loop of the module.
Main class for the replication module.
std::shared_ptr< CoreUtils > CoreUtilsPtr
bool fetch_remote_version(uint64_t &remote)
Fetch the remote configuration version by running a task in a pool, and sending the CONFIG_VERSION me...