userver: samples/grpc_middleware_service/src/middlewares/server/component.hpp
Loading...
Searching...
No Matches
samples/grpc_middleware_service/src/middlewares/server/component.hpp
#pragma once
#include <userver/ugrpc/server/middlewares/base.hpp>
namespace sample::grpc::auth::server {
class Component final : public ugrpc::server::MiddlewareComponentBase {
public:
static constexpr std::string_view kName = "grpc-auth-server";
Component(const components::ComponentConfig&,
std::shared_ptr<ugrpc::server::MiddlewareBase> GetMiddleware() override;
private:
std::shared_ptr<ugrpc::server::MiddlewareBase> middleware_;
};
} // namespace sample::grpc::auth::server