Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetAddrs (0.08 sec)

  1. pilot/test/xdstest/endpoints.go

    )
    
    type LbEpInfo struct {
    	Address string
    	// nolint: structcheck
    	Weight uint32
    }
    
    type LocLbEpInfo struct {
    	LbEps  []LbEpInfo
    	Weight uint32
    }
    
    func (i LocLbEpInfo) GetAddrs() []string {
    	addrs := make([]string, 0)
    	for _, ep := range i.LbEps {
    		addrs = append(addrs, ep.Address)
    	}
    	return addrs
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. pilot/pkg/xds/eds_sh_test.go

    	"istio.io/istio/pkg/config/protocol"
    	"istio.io/istio/pkg/network"
    )
    
    // Testing the Split Horizon EDS.
    
    type expectedResults struct {
    	weights map[string]uint32
    }
    
    func (r expectedResults) getAddrs() []string {
    	var out []string
    	for addr := range r.weights {
    		out = append(out, addr)
    	}
    	sort.Strings(out)
    	return out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top