OpenSDN source code
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_
void AddOptions(opt::options_description *sandesh_options, SandeshConfig *sandesh_config)
void ProcessOptions(const opt::variables_map &var_map, SandeshConfig *sandesh_config)
std::string server_keyfile
int tcp_keepalive_idle_time
std::string keyfile
bool disable_object_logs
bool introspect_ssl_insecure
uint32_t system_logs_rate_limit
std::string server_certfile
std::string http_server_ip
bool tcp_keepalive_enable
std::string ca_cert
int tcp_keepalive_interval
std::string certfile
bool introspect_ssl_enable
std::string stats_collector