LoadBalancerFactory(DynamicModuleClusterHandleSharedPtr handle) : handle_(std::move(handle)) {}
// =================================================================================================
// =================================================================================================
new DynamicModuleClusterConfig(cluster_name, cluster_config, std::move(module), stats_scope));
RESOLVE_SYMBOL("envoy_dynamic_module_on_cluster_lb_new", OnClusterLbNewType, on_cluster_lb_new_);
auto on_cancel = config->dynamic_module_->getFunctionPointer<OnClusterLbCancelHostSelectionType>(
auto on_drain_started = config->dynamic_module_->getFunctionPointer<OnClusterDrainStartedType>(
config->on_cluster_drain_started_ = on_drain_started.ok() ? on_drain_started.value() : nullptr;
// =================================================================================================
// =================================================================================================
// dispatcher destructor clears pending callbacks, the cluster destructor would otherwise try to
// =================================================================================================
// =================================================================================================
Upstream::HostsPerLocalityConstSharedPtr buildHostsPerLocality(const Upstream::HostVector& hosts) {
priority, Upstream::HostSetImpl::partitionHosts(all_hosts, std::move(hosts_per_locality)), {},
ENVOY_LOG(debug, "Added {} hosts to dynamic module cluster at priority {}.", result_hosts.size(),
size_t DynamicModuleCluster::removeHosts(const std::vector<Upstream::HostSharedPtr>& hosts) {
headers_vector.size(), reinterpret_cast<envoy_dynamic_module_type_envoy_buffer*>(body.data()),
// =================================================================================================
// =================================================================================================
if (in_module_lb_ != nullptr && handle_->cluster_->config()->on_cluster_lb_destroy_ != nullptr) {
bool DynamicModuleLoadBalancer::setHostData(uint32_t priority, size_t index, uintptr_t data) {
// =================================================================================================
// =================================================================================================
absl::StatusOr<std::pair<Upstream::ClusterImplBaseSharedPtr, Upstream::ThreadAwareLoadBalancerPtr>>