diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-04 14:24:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-04 14:24:07 +0100 |
commit | 007c2befbe517ac6d44830a7900c3ac3fdf6d634 (patch) | |
tree | 4c4227e2dbbde601fb6a86a7f032e20e5479f59a /src/libserver/rspamd_control.h | |
parent | 8857738c6cd2d64dc4a488740946fae64405a47a (diff) | |
download | rspamd-007c2befbe517ac6d44830a7900c3ac3fdf6d634.tar.gz rspamd-007c2befbe517ac6d44830a7900c3ac3fdf6d634.zip |
[Feature] Implement log pipe feature for rspamd logs analysis
Diffstat (limited to 'src/libserver/rspamd_control.h')
-rw-r--r-- | src/libserver/rspamd_control.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.h b/src/libserver/rspamd_control.h index dbe1001d6..fd24b856b 100644 --- a/src/libserver/rspamd_control.h +++ b/src/libserver/rspamd_control.h @@ -29,6 +29,7 @@ enum rspamd_control_type { RSPAMD_CONTROL_RERESOLVE, RSPAMD_CONTROL_RECOMPILE, RSPAMD_CONTROL_HYPERSCAN_LOADED, + RSPAMD_CONTROL_LOG_PIPE, RSPAMD_CONTROL_FUZZY_STAT, RSPAMD_CONTROL_FUZZY_SYNC, RSPAMD_CONTROL_MAX @@ -37,6 +38,11 @@ enum rspamd_control_type { enum rspamd_srv_type { RSPAMD_SRV_SOCKETPAIR = 0, RSPAMD_SRV_HYPERSCAN_LOADED, + RSPAMD_SRV_LOG_PIPE, +}; + +enum rspamd_log_pipe_type { + RSPAMD_LOG_PIPE_SYMBOLS = 0, }; struct rspamd_control_command { @@ -59,6 +65,9 @@ struct rspamd_control_command { gboolean forced; } hs_loaded; struct { + enum rspamd_log_pipe_type type; + } log_pipe; + struct { guint unused; } fuzzy_stat; struct { @@ -91,6 +100,9 @@ struct rspamd_control_reply { } hs_loaded; struct { guint status; + } log_pipe; + struct { + guint status; gchar storage_id[MEMPOOL_UID_LEN]; } fuzzy_stat; struct { @@ -113,6 +125,9 @@ struct rspamd_srv_command { gpointer cache_dir; gboolean forced; } hs_loaded; + struct { + enum rspamd_log_pipe_type type; + } log_pipe; } cmd; }; |