istio_echo_server_lib.h
Go to the documentation of this file.
1 //
2 // Copyright 2022 gRPC authors.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 #ifndef GRPC_TEST_CPP_INTEROP_ISTIO_ECHO_SERVER_LIB_H
18 #define GRPC_TEST_CPP_INTEROP_ISTIO_ECHO_SERVER_LIB_H
19 
20 #include "src/proto/grpc/testing/istio_echo.grpc.pb.h"
21 
22 namespace grpc {
23 namespace testing {
24 
25 class EchoTestServiceImpl : public proto::EchoTestService::Service {
26  public:
27  EchoTestServiceImpl(std::string hostname, std::string forwarding_address);
28 
30  const proto::EchoRequest* request,
31  proto::EchoResponse* response) override;
32 
34  const proto::ForwardEchoRequest* request,
35  proto::ForwardEchoResponse* response) override;
36 
37  private:
40  std::unique_ptr<proto::EchoTestService::Stub> forwarding_stub_;
41  // The following fields are not set yet. But we may need them later.
42  // int port_;
43  // std::string version_;
44  // std::string cluster_;
45  // std::string istio_version_;
46 };
47 
48 } // namespace testing
49 } // namespace grpc
50 
51 #endif // GRPC_TEST_CPP_INTEROP_ISTIO_ECHO_SERVER_LIB_H
testing
Definition: aws_request_signer_test.cc:25
grpc::ServerContext
Definition: grpcpp/impl/codegen/server_context.h:566
grpc
Definition: grpcpp/alarm.h:33
grpc::testing::EchoTestServiceImpl::forwarding_address_
std::string forwarding_address_
Definition: istio_echo_server_lib.h:39
benchmark.request
request
Definition: benchmark.py:77
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
grpc::testing::EchoTestServiceImpl::ForwardEcho
grpc::Status ForwardEcho(grpc::ServerContext *, const proto::ForwardEchoRequest *request, proto::ForwardEchoResponse *response) override
Definition: istio_echo_server_lib.cc:114
grpc::testing::EchoTestServiceImpl::EchoTestServiceImpl
EchoTestServiceImpl(std::string hostname, std::string forwarding_address)
Definition: istio_echo_server_lib.cc:68
grpc::testing::EchoTestServiceImpl::hostname_
std::string hostname_
Definition: istio_echo_server_lib.h:38
grpc::testing::EchoTestServiceImpl::forwarding_stub_
std::unique_ptr< proto::EchoTestService::Stub > forwarding_stub_
Definition: istio_echo_server_lib.h:40
grpc::testing::EchoTestServiceImpl::Echo
grpc::Status Echo(grpc::ServerContext *context, const proto::EchoRequest *request, proto::EchoResponse *response) override
Definition: istio_echo_server_lib.cc:76
asyncio_get_stats.response
response
Definition: asyncio_get_stats.py:28
grpc::Status
Definition: include/grpcpp/impl/codegen/status.h:35
context
grpc::ClientContext context
Definition: istio_echo_server_lib.cc:61


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:22