#include <algorithm>#include <atomic>#include <chrono>#include <condition_variable>#include <deque>#include <map>#include <memory>#include <mutex>#include <set>#include <sstream>#include <string>#include <thread>#include <vector>#include "absl/algorithm/container.h"#include "absl/flags/flag.h"#include "absl/strings/str_format.h"#include "absl/strings/str_join.h"#include "absl/strings/str_split.h"#include <grpcpp/ext/admin_services.h>#include <grpcpp/ext/proto_server_reflection_plugin.h>#include <grpcpp/grpcpp.h>#include <grpcpp/server.h>#include <grpcpp/server_builder.h>#include <grpcpp/server_context.h>#include <grpcpp/support/string_ref.h>#include <grpcpp/xds_server_builder.h>#include "src/core/lib/channel/status_util.h"#include "src/core/lib/gpr/env.h"#include "src/core/lib/gprpp/host_port.h"#include "src/core/lib/iomgr/gethostname.h"#include "src/proto/grpc/testing/istio_echo.pb.h"#include "test/core/util/test_config.h"#include "test/cpp/interop/istio_echo_server_lib.h"#include "test/cpp/util/test_config.h"
Go to the source code of this file.
Namespaces | |
| grpc | |
| grpc::testing | |
Functions | |
| ABSL_FLAG (std::string, cluster, "", "Cluster where this server is deployed") | |
| ABSL_FLAG (std::string, crt, "", "gRPC TLS server-side certificate") | |
| ABSL_FLAG (std::string, disable_alpn, "", "disable ALPN negotiation") | |
| ABSL_FLAG (std::string, forwarding_address, "0.0.0.0:7072", "Forwarding address for unhandled protocols") | |
| ABSL_FLAG (std::string, istio_version, "", "Istio sidecar version") | |
| ABSL_FLAG (std::string, key, "", "gRPC TLS server-side key") | |
| ABSL_FLAG (std::string, metrics, "", "Metrics port") | |
| ABSL_FLAG (std::string, uds, "", "HTTP server on unix domain socket") | |
| ABSL_FLAG (std::vector< std::string >, bind_ip, std::vector< std::string >({}), "Ports that are bound to INSTANCE_IP rather than wildcard IP.") | |
| ABSL_FLAG (std::vector< std::string >, bind_localhost, std::vector< std::string >({}), "Ports that are bound to localhost rather than wildcard IP.") | |
| ABSL_FLAG (std::vector< std::string >, grpc, std::vector< std::string >({"7070"}), "GRPC ports") | |
| ABSL_FLAG (std::vector< std::string >, port, std::vector< std::string >({"8080"}), "HTTP/1.1 ports") | |
| ABSL_FLAG (std::vector< std::string >, server_first, std::vector< std::string >({}), "Ports that are server first. These must be defined as tcp.") | |
| ABSL_FLAG (std::vector< std::string >, tcp, std::vector< std::string >({"9090"}), "TCP ports") | |
| ABSL_FLAG (std::vector< std::string >, tls, std::vector< std::string >({}), "Ports that are using TLS. These must be defined as http/grpc/tcp.") | |
| ABSL_FLAG (std::vector< std::string >, xds_grpc_server, std::vector< std::string >({}), "Ports that should rely on XDS configuration to serve") | |
| int | main (int argc, char **argv) |
| ABSL_FLAG | ( | std::string | , |
| crt | , | ||
| "" | , | ||
| "gRPC TLS server-side certificate" | |||
| ) |
| ABSL_FLAG | ( | std::string | , |
| disable_alpn | , | ||
| "" | , | ||
| "disable ALPN negotiation" | |||
| ) |
| ABSL_FLAG | ( | std::string | , |
| forwarding_address | , | ||
| "0.0.0.0:7072" | , | ||
| "Forwarding address for unhandled protocols" | |||
| ) |
| ABSL_FLAG | ( | std::string | , |
| istio_version | , | ||
| "" | , | ||
| "Istio sidecar version" | |||
| ) |
| ABSL_FLAG | ( | std::string | , |
| metrics | , | ||
| "" | , | ||
| "Metrics port" | |||
| ) |
| ABSL_FLAG | ( | std::string | , |
| uds | , | ||
| "" | , | ||
| "HTTP server on unix domain socket" | |||
| ) |
| ABSL_FLAG | ( | std::vector< std::string > | , |
| bind_ip | , | ||
| std::vector< std::string > | {}, | ||
| "Ports that are bound to INSTANCE_IP rather than wildcard IP." | |||
| ) |
| ABSL_FLAG | ( | std::vector< std::string > | , |
| bind_localhost | , | ||
| std::vector< std::string > | {}, | ||
| "Ports that are bound to localhost rather than wildcard IP." | |||
| ) |
| ABSL_FLAG | ( | std::vector< std::string > | , |
| grpc | , | ||
| std::vector< std::string > | {"7070"}, | ||
| "GRPC ports" | |||
| ) |
| ABSL_FLAG | ( | std::vector< std::string > | , |
| port | , | ||
| std::vector< std::string > | {"8080"}, | ||
| "HTTP/1.1 ports" | |||
| ) |
| ABSL_FLAG | ( | std::vector< std::string > | , |
| server_first | , | ||
| std::vector< std::string > | {}, | ||
| "Ports that are server first. These must be defined as tcp." | |||
| ) |
| ABSL_FLAG | ( | std::vector< std::string > | , |
| tcp | , | ||
| std::vector< std::string > | {"9090"}, | ||
| "TCP ports" | |||
| ) |
| ABSL_FLAG | ( | std::vector< std::string > | , |
| tls | , | ||
| std::vector< std::string > | {}, | ||
| "Ports that are using TLS. These must be defined as http/grpc/tcp." | |||
| ) |
| ABSL_FLAG | ( | std::vector< std::string > | , |
| xds_grpc_server | , | ||
| std::vector< std::string > | {}, | ||
| "Ports that should rely on XDS configuration to serve" | |||
| ) |
Definition at line 151 of file istio_echo_server.cc.