Lines Matching refs:addrs
53 func (addrs addrList) first(strategy func(Addr) bool) Addr {
54 for _, addr := range addrs {
59 return addrs[0]
68 func (addrs addrList) partition(strategy func(Addr) bool) (primaries, fallbacks addrList) {
70 for i, addr := range addrs {
87 var addrs addrList
90 addrs = append(addrs, inetaddr(ip))
93 if len(addrs) == 0 {
96 return addrs, nil