Clio
develop
The XRP Ledger API server.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
WhitelistHandlerInterface.hpp
1
#pragma once
2
3
#include <string_view>
4
5
namespace
web::dosguard {
6
10
class
WhitelistHandlerInterface
{
11
public
:
13
virtual
~WhitelistHandlerInterface
() =
default
;
14
21
[[nodiscard]]
virtual
bool
22
isWhiteListed
(std::string_view ip)
const
= 0;
23
};
24
25
}
// namespace web::dosguard
web::dosguard::WhitelistHandlerInterface
Interface for a whitelist handler.
Definition
WhitelistHandlerInterface.hpp:10
web::dosguard::WhitelistHandlerInterface::isWhiteListed
virtual bool isWhiteListed(std::string_view ip) const =0
Checks to see if the given IP is whitelisted.
web::dosguard::WhitelistHandlerInterface::~WhitelistHandlerInterface
virtual ~WhitelistHandlerInterface()=default
Virtual destructor.
src
web
dosguard
WhitelistHandlerInterface.hpp
Generated by
1.16.1