Line data Source code
1 : #include "source/extensions/upstreams/http/udp/config.h" 2 : 3 : #include "source/extensions/upstreams/http/udp/upstream_request.h" 4 : 5 : namespace Envoy { 6 : namespace Extensions { 7 : namespace Upstreams { 8 : namespace Http { 9 : namespace Udp { 10 : 11 : Router::GenericConnPoolPtr UdpGenericConnPoolFactory::createGenericConnPool( 12 : Upstream::ThreadLocalCluster& thread_local_cluster, 13 : Router::GenericConnPoolFactory::UpstreamProtocol, Upstream::ResourcePriority, 14 0 : absl::optional<Envoy::Http::Protocol>, Upstream::LoadBalancerContext* ctx) const { 15 0 : auto ret = std::make_unique<UdpConnPool>(thread_local_cluster, ctx); 16 0 : return (ret->valid() ? std::move(ret) : nullptr); 17 0 : } 18 : 19 : REGISTER_FACTORY(UdpGenericConnPoolFactory, Router::GenericConnPoolFactory); 20 : 21 : } // namespace Udp 22 : } // namespace Http 23 : } // namespace Upstreams 24 : } // namespace Extensions 25 : } // namespace Envoy