userver: samples/grpc_middleware_service/src/main.cpp
Loading...
Searching...
No Matches
samples/grpc_middleware_service/src/main.cpp
#include <client/view.hpp>
#include <http_handlers/say-hello/view.hpp>
#include <middlewares/client/component.hpp>
#include <middlewares/server/component.hpp>
#include <service/view.hpp>
int main(int argc, char* argv[]) {
const auto component_list = components::MinimalServerComponentList()
.Append<ugrpc::client::CommonComponent>()
.Append<ugrpc::server::ServerComponent>()
.Append<samples::grpc::auth::GreeterClient>()
.Append<samples::grpc::auth::GreeterServiceComponent>()
.Append<samples::grpc::auth::GreeterHttpHandler>()
.Append<sample::grpc::auth::client::Component>()
.Append<sample::grpc::auth::server::Component>();
return utils::DaemonMain(argc, argv, component_list);
}