gsd_UserApp.h 690 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. *
  3. * gsd_UserApp.h
  4. *
  5. */
  6. #pragma once
  7. #include <drogon/plugins/Plugin.h>
  8. #include <drogon/drogon.h>
  9. #include "Util/logger.h"
  10. #include "Util/SqlPool.h"
  11. #include <drogon/drogon.h>
  12. #include "gsd_InferPlugin.h"
  13. #include "gsd_CenterGroup.h"
  14. namespace gsd
  15. {
  16. class UserApp : public drogon::Plugin<UserApp>
  17. {
  18. public:
  19. UserApp() {}
  20. /// This method must be called by drogon to initialize and start the plugin.
  21. /// It must be implemented by the user.
  22. virtual void initAndStart(const Json::Value &config) override;
  23. /// This method must be called by drogon to shutdown the plugin.
  24. /// It must be implemented by the user.
  25. virtual void shutdown() override;
  26. };
  27. }