userver: userver/utils/userver_info.hpp Source File
Loading...
Searching...
No Matches
userver_info.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/utils/userver_info.hpp
4/// @brief Information about userver and its build environment
5
6USERVER_NAMESPACE_BEGIN
7
8namespace utils {
9
10/// \returns zero-terminated string with version as "major.minor.patch"
11const char* GetUserverVersion() noexcept;
12
13/// \returns zero-terminated string with GIT short hash of userver repo
14const char* GetUserverVcsRevision() noexcept;
15
16/// \returns zero-terminated string with description of the server as
17/// "userver/{GetUserverVersion()} ({__DATE__}; rv: {GetUserverHash()})"
18const char* GetUserverIdentifier() noexcept;
19
20} // namespace utils
21
22USERVER_NAMESPACE_END