Clio
develop
The XRP Ledger API server.
Theme:
Default
Round
Robot
Toggle main menu visibility
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
8
namespace
web::dosguard
{
9
10
class
BaseDOSGuard
;
11
15
class
IntervalSweepHandler
{
16
util::Repeat
repeat_;
17
18
public
:
26
IntervalSweepHandler
(
27
util::config::ClioConfigDefinition
const
& config,
28
boost::asio::io_context& ctx,
29
web::dosguard::BaseDOSGuard
& dosGuard
30
);
31
};
32
33
}
// namespace web::dosguard
util::Repeat
A class to repeat some action at a regular interval.
Definition
Repeat.hpp:25
util::config::ClioConfigDefinition
All the config data will be stored and extracted from this class.
Definition
ConfigDefinition.hpp:31
web::dosguard::BaseDOSGuard
The interface of a denial of service guard.
Definition
DOSGuardInterface.hpp:13
web::dosguard::IntervalSweepHandler::IntervalSweepHandler
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
web::dosguard
Denial of service protection: rate limiting, IP whitelisting and request weighting.
Definition
DOSGuard.cpp:22
src
web
dosguard
IntervalSweepHandler.hpp
Generated by
1.17.0