22#include "anch-rest-grpc-export.hpp"
29#include <grpcpp/security/server_credentials.h>
30#include <grpcpp/server.h>
31#include <grpcpp/server_builder.h>
33#include "rest/rpcService.hpp"
58 grpc::ServerBuilder _builder;
61 std::map<std::string, const anch::rest::RpcService*, std::less<>> _services;
64 std::unique_ptr<Dispatcher> _dispatcher;
67 std::unique_ptr<grpc::Server> _server;
114 std::shared_ptr<grpc::ServerCredentials> credentials = grpc::InsecureServerCredentials());
int getPort() const noexcept
grpc::ServerBuilder & builder() noexcept
GrpcServer(const GrpcServer &)=delete
GrpcServer & addService(const anch::rest::RpcService &service)
GrpcServer & listen(const std::string &address, std::shared_ptr< grpc::ServerCredentials > credentials=grpc::InsecureServerCredentials())
Definition rpcService.hpp:194
AnCH REST library namespace.
Definition auth.hpp:29