Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
IntervalSweepHandler.hpp
1#pragma once
2
3#include "util/Repeat.hpp"
4#include "util/config/ConfigDefinition.hpp"
5
6#include <boost/asio/io_context.hpp>
7
8namespace web::dosguard {
9
10class BaseDOSGuard;
11
16 util::Repeat repeat_;
17
18public:
28 boost::asio::io_context& ctx,
30 );
31};
32
33} // namespace web::dosguard
A class to repeat some action at a regular interval.
Definition Repeat.hpp:25
All the config data will be stored and extracted from this class.
Definition ConfigDefinition.hpp:31
The interface of a denial of service guard.
Definition DOSGuardInterface.hpp:13
IntervalSweepHandler(util::config::ClioConfigDefinition const &config, boost::asio::io_context &ctx, web::dosguard::BaseDOSGuard &dosGuard)
Construct a new interval-based sweep handler.
Definition IntervalSweepHandler.cpp:14