#include <userver/ugrpc/server/server.hpp>
Settings relating to the whole gRPC server.
Definition at line 31 of file server.hpp.
Public Attributes | |
std::optional< int > | port {0} |
std::optional< std::string > | unix_socket_path {std::nullopt} |
int | completion_queue_num {2} |
std::unordered_map< std::string, std::string > | channel_args {} |
logging::Level | native_log_level {logging::Level::kError} |
bool | enable_channelz {false} |
Serve a web page with runtime info about gRPC connections. | |
logging::LoggerPtr | access_tskv_logger {logging::MakeNullLogger()} |
'access-tskv.log' logger | |
logging::LoggerPtr ugrpc::server::ServerConfig::access_tskv_logger {logging::MakeNullLogger()} |
'access-tskv.log' logger
Definition at line 57 of file server.hpp.
std::unordered_map<std::string, std::string> ugrpc::server::ServerConfig::channel_args {} |
Optional grpc-core channel args
Definition at line 47 of file server.hpp.
int ugrpc::server::ServerConfig::completion_queue_num {2} |
Number of completion queues to create. Should be ~2 times less than number of worker threads for best RPS.
Definition at line 43 of file server.hpp.
bool ugrpc::server::ServerConfig::enable_channelz {false} |
Serve a web page with runtime info about gRPC connections.
Definition at line 54 of file server.hpp.
logging::Level ugrpc::server::ServerConfig::native_log_level {logging::Level::kError} |
The logging level override for the internal grpcpp library. Must be either kDebug
, kInfo
or kError
.
Definition at line 51 of file server.hpp.
std::optional<int> ugrpc::server::ServerConfig::port {0} |
The port to listen to. If 0
, a free port will be picked automatically. If none, the ports have to be configured programmatically using Server::WithServerBuilder.
Definition at line 35 of file server.hpp.
std::optional<std::string> ugrpc::server::ServerConfig::unix_socket_path {std::nullopt} |
Absolute path to the unix socket to listen to. A server can listen to both port and unix socket simultaneously.
Definition at line 39 of file server.hpp.