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
|
#ifndef CERT_TRANS_SERVER_LOG_PROCESSES_H_
#define CERT_TRANS_SERVER_LOG_PROCESSES_H_
#include <functional>
#include "log/logged_entry.h"
#include "log/tree_signer.h"
namespace cert_trans {
// Common processes that are called by server threads at intervals. This
// code is shared by binaries that write to logs, currently ct-server
// (all versions) and xjson-server.
void CleanUpEntries(ConsistentStore* store,
const std::function<bool()>& is_master);
void SequenceEntries(TreeSigner* tree_signer,
const std::function<bool()>& is_master);
void SignMerkleTree(TreeSigner* tree_signer, ConsistentStore* store,
ClusterStateController* controller);
}
#endif // CERT_TRANS_SERVER_LOG_PROCESSES_H_
|