mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
37 lines
628 B
C++
37 lines
628 B
C++
#include "lokinet-cron.hpp"
|
|
|
|
namespace lokinet
|
|
{
|
|
namespace bootserv
|
|
{
|
|
CronHandler::CronHandler(std::ostream& o) : Handler(o)
|
|
{
|
|
}
|
|
|
|
CronHandler::~CronHandler()
|
|
{
|
|
}
|
|
|
|
int
|
|
CronHandler::Exec(const Config& conf)
|
|
{
|
|
// this runs the cron tasks
|
|
// TODO: implement me
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
CronHandler::ReportError(const char* err)
|
|
{
|
|
out << "error: " << err << std::endl;
|
|
return 1;
|
|
}
|
|
|
|
Handler_ptr
|
|
NewCronHandler(std::ostream& out)
|
|
{
|
|
return std::make_unique< CronHandler >(out);
|
|
}
|
|
|
|
} // namespace bootserv
|
|
} // namespace lokinet
|