#include <sstream>
#include "absl/flags/flag.h"
#include "absl/strings/str_cat.h"
#include "absl/synchronization/mutex.h"
#include <grpc/grpc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
#include <grpcpp/ext/admin_services.h>
#include <grpcpp/ext/proto_server_reflection_plugin.h>
#include <grpcpp/health_check_service_interface.h>
#include <grpcpp/server.h>
#include <grpcpp/server_builder.h>
#include <grpcpp/server_context.h>
#include <grpcpp/xds_server_builder.h>
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/iomgr/gethostname.h"
#include "src/core/lib/transport/transport.h"
#include "src/proto/grpc/testing/empty.pb.h"
#include "src/proto/grpc/testing/messages.pb.h"
#include "src/proto/grpc/testing/test.grpc.pb.h"
#include "test/core/util/test_config.h"
#include "test/cpp/end2end/test_health_check_service_impl.h"
#include "test/cpp/util/test_config.h"
Go to the source code of this file.
|
| ABSL_FLAG (bool, secure_mode, false, "If true, XdsServerCredentials are used, InsecureServerCredentials " "otherwise") |
|
| ABSL_FLAG (int32_t, maintenance_port, 8081, "Server port for maintenance if --security is \"secure\".") |
|
| ABSL_FLAG (int32_t, port, 8080, "Server port for service.") |
|
| ABSL_FLAG (std::string, server_id, "cpp_server", "Server ID to include in responses.") |
|
int | main (int argc, char **argv) |
|
void | RunServer (bool secure_mode, const int port, const int maintenance_port, const std::string &hostname) |
|
◆ ABSL_FLAG() [1/4]
ABSL_FLAG |
( |
bool |
, |
|
|
secure_mode |
, |
|
|
false |
, |
|
|
"If |
true, |
|
|
XdsServerCredentials are |
used, |
|
|
InsecureServerCredentials " "otherwise" |
|
|
) |
| |
◆ ABSL_FLAG() [2/4]
ABSL_FLAG |
( |
int32_t |
, |
|
|
maintenance_port |
, |
|
|
8081 |
, |
|
|
"Server port for maintenance if --security is \"secure\"." |
|
|
) |
| |
◆ ABSL_FLAG() [3/4]
◆ ABSL_FLAG() [4/4]
ABSL_FLAG |
( |
std::string |
, |
|
|
server_id |
, |
|
|
"cpp_server" |
, |
|
|
"Server ID to include in responses." |
|
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ RunServer()