mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
33 lines
536 B
C++
Executable File
33 lines
536 B
C++
Executable File
#ifndef __RATE_LIMIT_H_
|
|
#define __RATE_LIMIT_H_
|
|
|
|
#include <string>
|
|
|
|
#include "component.h"
|
|
#include "singleton.h"
|
|
#include "i_mainloop.h"
|
|
#include "i_environment.h"
|
|
|
|
class RateLimit
|
|
:
|
|
public Component,
|
|
Singleton::Consume<I_MainLoop>,
|
|
Singleton::Consume<I_TimeGet>,
|
|
Singleton::Consume<I_Environment>
|
|
{
|
|
public:
|
|
RateLimit();
|
|
~RateLimit();
|
|
|
|
void preload() override;
|
|
|
|
void init() override;
|
|
void fini() override;
|
|
|
|
private:
|
|
class Impl;
|
|
std::unique_ptr<Impl> pimpl;
|
|
};
|
|
|
|
#endif // __RATE_LIMIT_H_
|