mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
628 B
C++
38 lines
628 B
C++
6 years ago
|
#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
|