drogon/examples/simple_example/DoNothingPlugin.h

26 lines
559 B
C++

/**
*
* DoNothingPlugin.h
*
*/
#pragma once
#include <drogon/plugins/Plugin.h>
using namespace drogon;
class DoNothingPlugin : public Plugin<DoNothingPlugin>
{
public:
DoNothingPlugin()
{
}
/// This method must be called by drogon to initialize and start the plugin.
/// It must be implemented by the user.
virtual void initAndStart(const Json::Value &config) override;
/// This method must be called by drogon to shutdown the plugin.
/// It must be implemented by the user.
virtual void shutdown() override;
};