This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-maat/src/inc_internal/maat_common.h

46 lines
1.0 KiB
C
Raw Normal View History

2022-11-17 05:05:35 +08:00
/*
**********************************************************************************************
* File: maat_common.h
* Description: maat common entry
* Authors: Liu WenTan <liuwentan@geedgenetworks.com>
* Date: 2022-10-31
* Copyright: (c) 2018-2022 Geedge Networks, Inc. All rights reserved.
***********************************************************************************************
*/
#ifndef _MAAT_COMMON_H_
#define _MAAT_COMMON_H_
#ifdef __cpluscplus
extern "C"
{
#endif
#include <stddef.h>
2022-12-09 17:12:18 +08:00
#include "log/log.h"
2022-12-03 22:23:41 +08:00
#include "maat_rule.h"
2022-11-17 05:05:35 +08:00
struct maat_options {
2022-12-09 17:12:18 +08:00
char instance_name[NAME_MAX];
2023-01-06 18:54:59 +08:00
char compile_tablename[NAME_MAX];
2022-11-17 05:05:35 +08:00
size_t nr_worker_threads;
2022-11-25 16:32:29 +08:00
int rule_effect_interval_ms;
int rule_update_checking_interval_ms;
int gc_timeout_ms;
int deferred_load_on;
2022-12-09 17:12:18 +08:00
int log_level;
struct log_handle *logger;
2022-11-25 16:32:29 +08:00
enum data_source input_mode;
2022-12-03 22:23:41 +08:00
union {
struct source_iris_ctx iris_ctx;
struct source_json_ctx json_ctx;
struct source_redis_ctx redis_ctx;
};
2022-11-17 05:05:35 +08:00
};
#ifdef __cpluscplus
}
#endif
#endif