userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
status_codes.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <grpcpp/support/status.h>
7
8
#include <
userver/formats/json_fwd.hpp
>
9
#include <
userver/yaml_config/fwd.hpp
>
10
11
USERVER_NAMESPACE_BEGIN
12
13
namespace
ugrpc
{
14
17
grpc::StatusCode
StatusCodeFromString
(std::string_view str);
18
20
std::string_view
ToStringView
(grpc::StatusCode code)
noexcept
;
21
23
std::string
ToString
(grpc::StatusCode code);
24
39
bool
IsServerError
(grpc::StatusCode code)
noexcept
;
40
54
bool
IsRetryable
(grpc::StatusCode code)
noexcept
;
55
56
}
// namespace ugrpc
57
58
namespace
formats::parse
{
59
61
grpc::StatusCode Parse(
const
yaml_config::YamlConfig
& value,
To<grpc::StatusCode>
);
62
64
grpc::StatusCode Parse(std::string_view value,
To<grpc::StatusCode>
);
65
66
}
// namespace formats::parse
67
68
namespace
formats::serialize
{
69
70
formats::json::Value
Serialize(
const
grpc::StatusCode& value,
formats::serialize::To<formats::json::Value>
);
71
72
}
73
74
USERVER_NAMESPACE_END
userver
ugrpc
status_codes.hpp
Generated on
for userver by
Doxygen
1.17.0