userver: userver/ugrpc/server/impl/call_params.hpp Source File
Loading...
Searching...
No Matches
call_params.hpp
1#pragma once
2
3#include <string_view>
4
5#include <grpcpp/completion_queue.h>
6#include <grpcpp/server_context.h>
7
8#include <userver/dynamic_config/snapshot.hpp>
9#include <userver/logging/fwd.hpp>
10#include <userver/tracing/span.hpp>
11#include <userver/utils/any_storage.hpp>
12
13#include <userver/ugrpc/impl/statistics_scope.hpp>
14#include <userver/ugrpc/server/storage_context.hpp>
15
16USERVER_NAMESPACE_BEGIN
17
18namespace ugrpc::server::impl {
19
20struct CallParams {
21 grpc::ServerContext& context;
22 const std::string_view call_name;
23 ugrpc::impl::RpcStatisticsScope& statistics;
24 logging::LoggerRef access_tskv_logger;
25 tracing::Span& call_span;
26 utils::AnyStorage<StorageContext>& storage_context;
27};
28
29} // namespace ugrpc::server::impl
30
31USERVER_NAMESPACE_END