userver: ugrpc::server Namespace Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
ugrpc::server Namespace Reference

Detailed Description

Server-side utilities.

Classes

class  BaseError
 Base exception for all the server errors. More...
 
class  CallContext
 gRPC call context More...
 
class  CallContextBase
 
class  GenericCallContext
 generic gRPC call context More...
 
class  GenericServiceBase
 Allows to handle RPCs with dynamic method names. More...
 
class  MiddlewareBase
 Base class for server gRPC middleware. More...
 
class  MiddlewareCallContext
 Context for middleware-specific data during gRPC call. More...
 
class  MiddlewarePipelineComponent
 Component to create middlewares pipeline. More...
 
class  Reader
 Interface to read client's requests. More...
 
class  ReaderWriter
 Interface to both read and write messages. More...
 
class  Result
 Result type for service handlers (non server-streaming). More...
 
class  RpcError
 Error during an RPC. More...
 
class  RpcInterruptedError
 RPC failed without a status. This means that either the call got cancelled using TryCancel, the deadline has expired, or the client disconnected. More...
 
class  Server
 Manages the gRPC server. More...
 
class  ServerComponent
 Component that configures and manages the gRPC server. More...
 
struct  ServerConfig
 Settings relating to the whole gRPC server. More...
 
class  ServiceBase
 The type-erased base class for all gRPC service implementations. More...
 
class  ServiceComponentBase
 Base class for all the gRPC service components. More...
 
struct  ServiceConfig
 Per-service settings. More...
 
struct  ServiceInfo
 Service meta info for a middleware construction. More...
 
struct  StorageContext
 AnyStorage tag for gRPC call context. More...
 
class  StreamingResult
 Special result type for server-streaming service handlers. More...
 
struct  TlsConfig
 
class  Writer
 Interface to write server's responses. More...
 

Typedefs

using MiddlewareFactoryComponentBase
 Factory that creates specific server middlewares for services.
 
template<typename Middleware>
using SimpleMiddlewareFactoryComponent
 The alias for a short-cut server middleware factory.
 
using Middlewares = std::vector<std::shared_ptr<const MiddlewareBase>>
 A chain of middlewares.
 

Functions

components::ComponentList MinimalComponentList ()
 Returns a list of components to do a minimal grpc server configuration.
 
components::ComponentList DefaultComponentList ()
 Returns a list of components to do a default grpc server configuration.
 
auto GetRepeatedMetadata (MiddlewareCallContext &context, std::string_view field_name)
 Returns an std::input_range containing std::string_view which are non-owning references to the values of the metadata field. The references must not outlive the call object to avoid undefined behavior.
 

Typedef Documentation

◆ Middlewares

using ugrpc::server::Middlewares = std::vector<std::shared_ptr<const MiddlewareBase>>

A chain of middlewares.

Definition at line 18 of file fwd.hpp.

Function Documentation

◆ GetRepeatedMetadata()

auto ugrpc::server::GetRepeatedMetadata ( MiddlewareCallContext & context,
std::string_view field_name )
inline

Returns an std::input_range containing std::string_view which are non-owning references to the values of the metadata field. The references must not outlive the call object to avoid undefined behavior.

Definition at line 25 of file metadata_utils.hpp.