/proc/self/cwd/source/extensions/filters/network/dubbo_proxy/router/config.cc
Line | Count | Source (jump to first uncovered line) |
1 | | #include "source/extensions/filters/network/dubbo_proxy/router/config.h" |
2 | | |
3 | | #include "envoy/extensions/filters/network/dubbo_proxy/router/v3/router.pb.h" |
4 | | #include "envoy/extensions/filters/network/dubbo_proxy/router/v3/router.pb.validate.h" |
5 | | #include "envoy/registry/registry.h" |
6 | | |
7 | | #include "source/extensions/filters/network/dubbo_proxy/router/router_impl.h" |
8 | | |
9 | | namespace Envoy { |
10 | | namespace Extensions { |
11 | | namespace NetworkFilters { |
12 | | namespace DubboProxy { |
13 | | namespace Router { |
14 | | |
15 | | DubboFilters::FilterFactoryCb RouterFilterConfig::createFilterFactoryFromProtoTyped( |
16 | | const envoy::extensions::filters::network::dubbo_proxy::router::v3::Router&, const std::string&, |
17 | 0 | Server::Configuration::FactoryContext& context) { |
18 | 0 | return [&context](DubboFilters::FilterChainFactoryCallbacks& callbacks) -> void { |
19 | 0 | callbacks.addFilter(std::make_shared<Router>(context.clusterManager())); |
20 | 0 | }; |
21 | 0 | } |
22 | | |
23 | | /** |
24 | | * Static registration for the router filter. @see RegisterFactory. |
25 | | */ |
26 | | REGISTER_FACTORY(RouterFilterConfig, DubboFilters::NamedDubboFilterConfigFactory); |
27 | | |
28 | | } // namespace Router |
29 | | } // namespace DubboProxy |
30 | | } // namespace NetworkFilters |
31 | | } // namespace Extensions |
32 | | } // namespace Envoy |