Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
tracker_config.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2  *
3  * Copyright (c) 2022, 郑昱笙,濮雯旭,张典典(牛校牛子队)
4  * All rights reserved.
5  */
6 
7 #ifndef TRACKER_CONFIG_H
8 #define TRACKER_CONFIG_H
9 
10 #include <mutex>
11 #include <thread>
12 #include "event_handler.h"
13 
15 template<typename ENV>
16 concept env_concept = requires {
18 
20  typename ENV::exiting;
21 };
22 
24 
26 template <typename ENV, typename EVENT>
28 {
30  ENV env;
32  std::string name;
34  std::shared_ptr<event_handler<EVENT>> handler = nullptr;
35 };
36 
37 #endif
event_handler.h
tracker_config::name
std::string name
tracker name
Definition: tracker_config.h:32
tracker_config
config data for tracker
Definition: tracker_config.h:27
tracker_config::handler
std::shared_ptr< event_handler< EVENT > > handler
event handler interface
Definition: tracker_config.h:34
env_concept
concept env_concept
the config env for a tracker
Definition: tracker_config.h:16
tracker_config::env
ENV env
tracker env in C code
Definition: tracker_config.h:30