26 lines
543 B
C
26 lines
543 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.
|
||
|
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.
|
||
|
void shutdown() override;
|
||
|
};
|