#include <LeakMonitor.hpp>
Public Types | |
| using | NotifyFn = std::function<void(const std::string&)> |
Public Member Functions | |
| LeakMonitor (const std::string &email, NotifyFn notify) | |
| ~LeakMonitor () | |
| void | start () |
| void | stop () |
Private Member Functions | |
| void | loop () |
Private Attributes | |
| std::string | |
| NotifyFn | notify |
| std::thread | worker |
| std::atomic< bool > | running {false} |
Definition at line 30 of file LeakMonitor.hpp.
| using LeakMonitor::NotifyFn = std::function<void(const std::string&)> |
Definition at line 32 of file LeakMonitor.hpp.
|
explicit |
Definition at line 32 of file LeakMonitor.cpp.
| LeakMonitor::~LeakMonitor | ( | ) |
Definition at line 41 of file LeakMonitor.cpp.
References stop().
|
private |
Definition at line 63 of file LeakMonitor.cpp.
References _, LeakAggregator::addProvider(), email, IdentityLeakConfig::hibpApiKey(), notify, LeakAggregator::queryAll(), running, and HashUtil::sha256().
Referenced by start().
| void LeakMonitor::start | ( | ) |
Definition at line 46 of file LeakMonitor.cpp.
| void LeakMonitor::stop | ( | ) |
Definition at line 55 of file LeakMonitor.cpp.
References running, and worker.
Referenced by ~LeakMonitor().
|
private |
Definition at line 45 of file LeakMonitor.hpp.
Referenced by LeakMonitor(), and loop().
|
private |
Definition at line 46 of file LeakMonitor.hpp.
Referenced by LeakMonitor(), and loop().
|
private |
Definition at line 48 of file LeakMonitor.hpp.
Referenced by LeakMonitor(), loop(), start(), and stop().
|
private |
Definition at line 47 of file LeakMonitor.hpp.