forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.h
28 lines (22 loc) · 915 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "envoy/admin/v3/server_info.pb.h"
#include "envoy/config/bootstrap/v3/bootstrap.pb.h"
#include "envoy/init/manager.h"
#include "envoy/server/options.h"
namespace Envoy {
namespace Server {
namespace Utility {
/*
Fetches the current state of the server (e.g., initializing, live, etc.)
given the manager's state and the status of the health check.
*/
envoy::admin::v3::ServerInfo::State serverState(Init::Manager::State state,
bool health_check_failed);
absl::Status assertExclusiveLogFormatMethod(
const Options& options,
const envoy::config::bootstrap::v3::Bootstrap::ApplicationLogConfig& application_log_config);
absl::Status maybeSetApplicationLogFormat(
const envoy::config::bootstrap::v3::Bootstrap::ApplicationLogConfig& application_log_config);
} // namespace Utility
} // namespace Server
} // namespace Envoy