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