userver: samples/grpc_middleware_service/src/middlewares/client/component.hpp
Loading...
Searching...
No Matches
samples/grpc_middleware_service/src/middlewares/client/component.hpp
#pragma once
#include <userver/ugrpc/client/middlewares/base.hpp>
namespace sample::grpc::auth::client {
class Component final : public ugrpc::client::MiddlewareComponentBase {
public:
static constexpr const char* kName = "grpc-auth-client";
Component(const components::ComponentConfig& config, const components::ComponentContext& context);
std::shared_ptr<const ugrpc::client::MiddlewareFactoryBase> GetMiddlewareFactory() override;
private:
std::shared_ptr<ugrpc::client::MiddlewareFactoryBase> factory_;
};
} // namespace sample::grpc::auth::client