OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sandesh_options.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
3 //
4 
5 #ifndef LIBRARY_CPP_SANDESH_OPTIONS_H_
6 #define LIBRARY_CPP_SANDESH_OPTIONS_H_
7 
8 #include <boost/program_options.hpp>
9 
10 #include <sandesh/sandesh_constants.h>
11 
12 struct SandeshConfig {
15  keyfile(),
16  certfile(),
19  ca_cert(),
21  sandesh_ssl_enable(false),
22  introspect_ssl_enable(false),
24  disable_object_logs(false),
30  g_sandesh_constants.DEFAULT_SANDESH_SEND_RATELIMIT) {
31  }
33  }
34 
35  std::string http_server_ip;
36  std::string keyfile;
37  std::string certfile;
38  std::string server_keyfile;
39  std::string server_certfile;
40  std::string ca_cert;
41  std::string stats_collector;
51 };
52 
53 namespace sandesh {
54 namespace options {
55 
56 void AddOptions(boost::program_options::options_description *sandesh_options,
57  SandeshConfig *sandesh_config);
58 void ProcessOptions(const boost::program_options::variables_map &var_map,
59  SandeshConfig *sandesh_config);
60 
61 } // namespace options
62 } // namespace sandesh
63 
64 #endif // LIBRARY_CPP_SANDESH_OPTIONS_H_
bool introspect_ssl_enable
uint32_t system_logs_rate_limit
std::string server_certfile
bool tcp_keepalive_enable
int tcp_keepalive_idle_time
bool introspect_ssl_insecure
static Options options
std::string http_server_ip
std::string server_keyfile
std::string certfile
void ProcessOptions(const opt::variables_map &var_map, SandeshConfig *sandesh_config)
std::string stats_collector
void AddOptions(opt::options_description *sandesh_options, SandeshConfig *sandesh_config)
int tcp_keepalive_interval
bool disable_object_logs
std::string keyfile
std::string ca_cert