Coverage Report

Created: 2024-09-19 09:45

/proc/self/cwd/source/server/config_validation/dispatcher.h
Line
Count
Source
1
#pragma once
2
3
#include "envoy/event/dispatcher.h"
4
5
#include "source/common/event/dispatcher_impl.h"
6
7
namespace Envoy {
8
namespace Event {
9
10
/**
11
 * Config-validation-only implementation of Event::Dispatcher. This class delegates all calls to
12
 * Event::DispatcherImpl, except for the methods involved with network events. Those methods are
13
 * disallowed at validation time.
14
 */
15
class ValidationDispatcher : public DispatcherImpl {
16
public:
17
  ValidationDispatcher(const std::string& name, Api::Api& api, Event::TimeSystem& time_system)
18
5.52k
      : DispatcherImpl(name, api, time_system) {}
19
20
  Network::ClientConnectionPtr createClientConnection(
21
      Network::Address::InstanceConstSharedPtr, Network::Address::InstanceConstSharedPtr,
22
      Network::TransportSocketPtr&&, const Network::ConnectionSocket::OptionsSharedPtr& options,
23
      const Network::TransportSocketOptionsConstSharedPtr& transport_options) override;
24
};
25
26
} // namespace Event
27
} // namespace Envoy