1
#pragma once
2

            
3
#include "envoy/admin/v3/server_info.pb.h"
4
#include "envoy/config/bootstrap/v3/bootstrap.pb.h"
5
#include "envoy/init/manager.h"
6
#include "envoy/server/options.h"
7

            
8
namespace Envoy {
9
namespace Server {
10
namespace Utility {
11

            
12
/*
13
    Fetches the current state of the server (e.g., initializing, live, etc.)
14
    given the manager's state and the status of the health check.
15
*/
16
envoy::admin::v3::ServerInfo::State serverState(Init::Manager::State state,
17
                                                bool health_check_failed);
18

            
19
absl::Status assertExclusiveLogFormatMethod(
20
    const Options& options,
21
    const envoy::config::bootstrap::v3::Bootstrap::ApplicationLogConfig& application_log_config);
22

            
23
absl::Status maybeSetApplicationLogFormat(
24
    const envoy::config::bootstrap::v3::Bootstrap::ApplicationLogConfig& application_log_config);
25

            
26
} // namespace Utility
27
} // namespace Server
28
} // namespace Envoy