kea-custom-hooks
FeM custom hooks libraries for Kea DHCP
common.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include <memory>
9#include <vector>
10
11namespace arpwatch
12{
13class Exporter;
14} // namespace arpwatch
15
16class HiredisAdapter;
18class ArpwatchRPC;
19
20namespace arpwatch
21{
22// NOLINTBEGIN(*-non-const-global-variables)
23extern std::unique_ptr<arpwatch::Exporter> exporter;
24extern std::vector<HiredisAdapter> redis_adapters;
25extern std::unique_ptr<HiredisMultiAdapter> redis_multi_adapter;
26extern std::unique_ptr<ArpwatchRPC> arpwatch_rpc;
27// NOLINTEND(*-non-const-global-variables)
28} // namespace arpwatch
An adapter to the RPC interface of ARPwatch.
Definition: ArpwatchRPC.hpp:19
A wrapper for the hiredis C interface with multi-client support.
Wrapper around HiredisAdapter for multi-client support.
Main lease-to-Redis/ARPwatch exporter.
Definition: Exporter.hpp:36
std::unique_ptr< ArpwatchRPC > arpwatch_rpc
Definition: init.cpp:29
std::unique_ptr< arpwatch::Exporter > exporter
Definition: init.cpp:26
std::vector< HiredisAdapter > redis_adapters
Definition: init.cpp:27
std::unique_ptr< HiredisMultiAdapter > redis_multi_adapter
Definition: init.cpp:28