Public Member Functions | Private Attributes | List of all members
grpc::testing::HealthCheckServiceImpl Class Reference

#include <test_health_check_service_impl.h>

Inheritance diagram for grpc::testing::HealthCheckServiceImpl:
Inheritance graph
[legend]

Public Member Functions

Status Check (ServerContext *context, const health::v1::HealthCheckRequest *request, health::v1::HealthCheckResponse *response) override
 
void SetAll (health::v1::HealthCheckResponse::ServingStatus status)
 
void SetStatus (const std::string &service_name, health::v1::HealthCheckResponse::ServingStatus status)
 
void Shutdown ()
 
Status Watch (ServerContext *context, const health::v1::HealthCheckRequest *request, ServerWriter< health::v1::HealthCheckResponse > *writer) override
 

Private Attributes

std::mutex mu_
 
bool shutdown_ = false
 
std::map< const std::string, health::v1::HealthCheckResponse::ServingStatus > status_map_
 

Detailed Description

Definition at line 34 of file test_health_check_service_impl.h.

Member Function Documentation

◆ Check()

Status grpc::testing::HealthCheckServiceImpl::Check ( ServerContext context,
const health::v1::HealthCheckRequest *  request,
health::v1::HealthCheckResponse *  response 
)
override

Definition at line 29 of file test_health_check_service_impl.cc.

◆ SetAll()

void grpc::testing::HealthCheckServiceImpl::SetAll ( health::v1::HealthCheckResponse::ServingStatus  status)

Definition at line 76 of file test_health_check_service_impl.cc.

◆ SetStatus()

void grpc::testing::HealthCheckServiceImpl::SetStatus ( const std::string &  service_name,
health::v1::HealthCheckResponse::ServingStatus  status 
)

Definition at line 66 of file test_health_check_service_impl.cc.

◆ Shutdown()

void grpc::testing::HealthCheckServiceImpl::Shutdown ( )

Definition at line 86 of file test_health_check_service_impl.cc.

◆ Watch()

Status grpc::testing::HealthCheckServiceImpl::Watch ( ServerContext context,
const health::v1::HealthCheckRequest *  request,
ServerWriter< health::v1::HealthCheckResponse > *  writer 
)
override

Definition at line 41 of file test_health_check_service_impl.cc.

Member Data Documentation

◆ mu_

std::mutex grpc::testing::HealthCheckServiceImpl::mu_
private

Definition at line 49 of file test_health_check_service_impl.h.

◆ shutdown_

bool grpc::testing::HealthCheckServiceImpl::shutdown_ = false
private

Definition at line 50 of file test_health_check_service_impl.h.

◆ status_map_

std::map<const std::string, health::v1::HealthCheckResponse::ServingStatus> grpc::testing::HealthCheckServiceImpl::status_map_
private

Definition at line 52 of file test_health_check_service_impl.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:34