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
namespace sample::grpc::auth::server {
class Component final : public ugrpc::server::MiddlewareComponentBase {
public:
static constexpr std::string_view kName = "grpc-auth-server";
std::shared_ptr<ugrpc::server::MiddlewareBase> GetMiddleware() override;
private:
std::shared_ptr<ugrpc::server::MiddlewareBase> middleware_;
};
} // namespace sample::grpc::auth::server