diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-18 13:49:26 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-18 13:49:26 +0100 |
commit | ff1c29c56832cf18e719a84c1ce44e557a81f669 (patch) | |
tree | 1a085119b3d0474f814db21310070a2579991d44 /src/libutil/map_private.h | |
parent | 5c8b2d3ad79003c8e6dba2789e2d7f3a358e5648 (diff) | |
download | rspamd-ff1c29c56832cf18e719a84c1ce44e557a81f669.tar.gz rspamd-ff1c29c56832cf18e719a84c1ce44e557a81f669.zip |
[Feature] Add support of the fallback backends for HTTP maps
Diffstat (limited to 'src/libutil/map_private.h')
-rw-r--r-- | src/libutil/map_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/map_private.h b/src/libutil/map_private.h index 55d7f0b15..806a77125 100644 --- a/src/libutil/map_private.h +++ b/src/libutil/map_private.h @@ -88,6 +88,7 @@ struct rspamd_map_backend { enum fetch_proto protocol; gboolean is_signed; gboolean is_compressed; + gboolean is_fallback; guint32 id; struct rspamd_cryptobox_pubkey *trusted_pubkey; union rspamd_map_backend_data data; @@ -115,6 +116,7 @@ struct rspamd_map { struct rspamd_dns_resolver *r; struct rspamd_config *cfg; GPtrArray *backends; + struct rspamd_map_backend *fallback_backend; map_cb_t read_callback; map_fin_cb_t fin_callback; map_dtor_t dtor; |