userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
auth_checker_settings_component.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <
userver/components/component_base.hpp
>
7
#include <
userver/storages/secdist/component.hpp
>
8
9
#include "
auth_checker_settings.hpp
"
10
11
USERVER_NAMESPACE_BEGIN
12
13
namespace
components
{
14
22
class
AuthCheckerSettings final :
public
ComponentBase {
23
public
:
24
AuthCheckerSettings(
const
ComponentConfig
&,
const
ComponentContext
&);
25
28
static
constexpr
std::string_view
kName
=
"auth-checker-settings"
;
29
30
const
server::handlers::auth::AuthCheckerSettings
& Get()
const
{
return
settings_; }
31
32
static
yaml_config::Schema
GetStaticConfigSchema
();
33
34
private
:
35
server::handlers::auth::AuthCheckerSettings
settings_;
36
};
37
38
template
<>
39
inline
constexpr
bool
kHasValidate<AuthCheckerSettings> =
true
;
40
41
template
<>
42
inline
constexpr
auto
kConfigFileMode<AuthCheckerSettings> =
ConfigFileMode::kNotRequired
;
43
44
}
// namespace components
45
46
USERVER_NAMESPACE_END
userver
server
handlers
auth
auth_checker_settings_component.hpp
Generated on
for userver by
Doxygen
1.17.0