syslog-ng source
afmongodb.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2016 Balabit
3  * Copyright (c) 2010-2013 Gergely Nagy <algernon@balabit.hu>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 
24 #ifndef AFMONGODB_H_INCLUDED
25 #define AFMONGODB_H_INCLUDED
26 
27 #include "syslog-ng.h"
28 #include "driver.h"
29 #include "template/templates.h"
31 
32 LogDriver *afmongodb_dd_new(GlobalConfig *cfg);
33 
34 void afmongodb_dd_set_uri(LogDriver *d, const gchar *uri);
35 void afmongodb_dd_set_collection(LogDriver *d, LogTemplate *collection_template);
36 void afmongodb_dd_set_value_pairs(LogDriver *d, ValuePairs *vp);
37 void afmongodb_dd_set_bulk(LogDriver *d, gboolean bulk);
38 void afmongodb_dd_set_bulk_unordered(LogDriver *d, gboolean unordered);
39 void afmongodb_dd_set_bulk_bypass_validation(LogDriver *d, gboolean bypass_validation);
40 void afmongodb_dd_set_write_concern(LogDriver *d, int32_t write_concern_level);
41 
42 LogTemplateOptions *afmongodb_dd_get_template_options(LogDriver *s);
43 
44 gboolean afmongodb_dd_private_uri_init(LogDriver *self);
45 
46 #endif
LogDriver * afmongodb_dd_new(GlobalConfig *cfg)
Definition: afmongodb.c:373
void afmongodb_dd_set_value_pairs(LogDriver *d, ValuePairs *vp)
Definition: afmongodb.c:80
void afmongodb_dd_set_collection(LogDriver *d, LogTemplate *collection_template)
Definition: afmongodb.c:69
void afmongodb_dd_set_uri(LogDriver *d, const gchar *uri)
Definition: afmongodb.c:58
void afmongodb_dd_set_write_concern(LogDriver *d, int32_t write_concern_level)
Definition: afmongodb.c:112
void afmongodb_dd_set_bulk_unordered(LogDriver *d, gboolean unordered)
Definition: afmongodb.c:96
gboolean afmongodb_dd_private_uri_init(LogDriver *self)
Definition: afmongodb.c:204
void afmongodb_dd_set_bulk_bypass_validation(LogDriver *d, gboolean bypass_validation)
Definition: afmongodb.c:104
void afmongodb_dd_set_bulk(LogDriver *d, gboolean bulk)
Definition: afmongodb.c:88
LogTemplateOptions * afmongodb_dd_get_template_options(LogDriver *s)
Definition: afmongodb.c:50
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34