Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FindGridHostsFromPeer (0.15 sec)

  1. cmd/endpoint.go

    				continue
    			}
    
    			if endpoint.Host == peer {
    				return endpoint.GridHost()
    			}
    		}
    	}
    	return ""
    }
    
    // FindGridHostsFromPeer will return a matching peer from provided peer.
    func (l EndpointServerPools) FindGridHostsFromPeer(peer *xnet.Host) (peerGrid string) {
    	if peer == nil {
    		return ""
    	}
    	for _, ep := range l {
    		for _, endpoint := range ep.Endpoints {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  2. cmd/peer-rest-client.go

    	remote = make([]*peerRESTClient, 0, len(hosts))
    	all = make([]*peerRESTClient, len(hosts))
    	for i, host := range hosts {
    		if host == nil {
    			continue
    		}
    		all[i] = newPeerRESTClient(host, endpoints.FindGridHostsFromPeer(host))
    		remote = append(remote, all[i])
    	}
    	if len(all) != len(remote)+1 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top