syslog-ng source
grpc-parser.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 Axoflow
3  * Copyright (c) 2023-2024 Attila Szakacs <attila.szakacs@axoflow.com>
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 GRPC_PARSER_H
25 #define GRPC_PARSER_H
26 
27 #define GRPC_KEYWORDS \
28  { "insecure", KW_INSECURE }, \
29  { "tls", KW_TLS }, \
30  { "key_file", KW_KEY_FILE }, \
31  { "cert_file", KW_CERT_FILE }, \
32  { "ca_file", KW_CA_FILE }, \
33  { "auth", KW_AUTH }, \
34  { "alts", KW_ALTS }, \
35  { "url", KW_URL }, \
36  { "target_service_accounts", KW_TARGET_SERVICE_ACCOUNTS }, \
37  { "adc", KW_ADC }, \
38  { "service_account", KW_SERVICE_ACCOUNT }, \
39  { "key", KW_KEY }, \
40  { "token_validity_duration", KW_TOKEN_VALIDITY_DURATION }, \
41  { "compression", KW_COMPRESSION }, \
42  { "batch_bytes", KW_BATCH_BYTES }, \
43  { "channel_args", KW_CHANNEL_ARGS }, \
44  { "headers", KW_HEADERS }, \
45  { "schema", KW_SCHEMA }, \
46  { "protobuf_schema", KW_PROTOBUF_SCHEMA }, \
47  { "keep_alive", KW_KEEP_ALIVE }, \
48  { "time", KW_TIME }, \
49  { "timeout", KW_TIMEOUT }, \
50  { "max_pings_without_data", KW_MAX_PINGS_WITHOUT_DATA }, \
51  { "port", KW_PORT }, \
52  { "peer_verify", KW_PEER_VERIFY }, \
53  { "optional_untrusted", KW_OPTIONAL_UNTRUSTED }, \
54  { "optional_trusted", KW_OPTIONAL_TRUSTED }, \
55  { "required_untrusted", KW_REQUIRED_UNTRUSTED }, \
56  { "required_trusted", KW_REQUIRED_TRUSTED }, \
57  { "concurrent_requests", KW_CONCURRENT_REQUESTS }, \
58  { "response_action", KW_RESPONSE_ACTION }, \
59  { "disconnect", KW_DISCONNECT }, \
60  { "drop", KW_DROP }, \
61  { "retry", KW_RETRY }, \
62  { "success", KW_SUCCESS }, \
63  { "ok", KW_OK }, \
64  { "unavailable", KW_UNAVAILABLE }, \
65  { "cancelled", KW_CANCELLED }, \
66  { "deadline_exceeded", KW_DEADLINE_EXCEEDED }, \
67  { "aborted", KW_ABORTED }, \
68  { "out_of_range", KW_OUT_OF_RANGE }, \
69  { "data_loss", KW_DATA_LOSS }, \
70  { "unknown", KW_UNKNOWN }, \
71  { "invalid_argument", KW_INVALID_ARGUMENT }, \
72  { "not_found", KW_NOT_FOUND }, \
73  { "already_exists", KW_ALREADY_EXISTS }, \
74  { "permission_denied", KW_PERMISSION_DENIED }, \
75  { "unauthenticated", KW_UNAUTHENTICATED }, \
76  { "failed_precondition", KW_FAILED_PRECONDITION }, \
77  { "unimplemented", KW_UNIMPLEMENTED }, \
78  { "internal", KW_INTERNAL }, \
79  { "resource_exhausted", KW_RESOURCE_EXHAUSTED }
80 
81 #endif