Versions in this module Expand all Collapse all v0 v0.2.0-dev.1 May 10, 2023 v0.1.0 Feb 15, 2023 Changes in this version + func Filter(clusters []*envoy_config_cluster_v3.Cluster, opts ...FilterOption) []*envoy_config_cluster_v3.Cluster + func GetLoadBalancingPolicy(cluster *envoy_config_cluster_v3.Cluster) envoy_config_cluster_v3.Cluster_LbPolicy + func GetMetadata(cluster *envoy_config_cluster_v3.Cluster) (map[string]interface{}, error) + func GetTlsServerName(cluster *envoy_config_cluster_v3.Cluster) string + func IsPermissive(cluster *envoy_config_cluster_v3.Cluster) bool + func SelectCluster(weightedClusters map[string]uint32, clustersStats *ClustersStats) string + func UsesTls(cluster *envoy_config_cluster_v3.Cluster) bool + type ClustersStats struct + func NewClustersStats() *ClustersStats + func (cs *ClustersStats) IncWeightedClusterSelectionCount(clusterName string) + func (cs *ClustersStats) ResetWeightedClusterSelectionCount(clusterName string) + func (cs *ClustersStats) WeightedClusterSelectionCount(clusterName string) uint32 + type FilterOption interface + Filter func(*envoy_config_cluster_v3.Cluster) bool + type Stats struct + func (s *Stats) WeightedClusterSelectionCount() uint32