Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetLocalPeer (0.15 sec)

  1. cmd/endpoint.go

    	}
    
    	return poolEndpoints, setupType, nil
    }
    
    // GetLocalPeer - returns local peer value, returns globalMinioAddr
    // for FS and Erasure mode. In case of distributed server return
    // the first element from the set of peers which indicate that
    // they are local. There is always one entry that is local
    // even with repeated server endpoints.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  2. cmd/endpoint_test.go

    		if !zendpoints[0].Endpoints[0].IsLocal {
    			if err := zendpoints[0].Endpoints.UpdateIsLocal(); err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		}
    		localPeer := GetLocalPeer(zendpoints, "", "9000")
    		if localPeer != testCase.expectedResult {
    			t.Fatalf("Test %d: expected: %v, got: %v", i+1, testCase.expectedResult, localPeer)
    		}
    	}
    }
    
    func TestGetRemotePeers(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  3. cmd/server-main.go

    	if globalDynamicAPIPort && globalIsDistErasure {
    		logger.FatalIf(errInvalidArgument, "Invalid --address=\"%s\", port '0' is not allowed in a distributed erasure coded setup", ctxt.Addr)
    	}
    
    	globalLocalNodeName = GetLocalPeer(globalEndpoints, globalMinioHost, globalMinioPort)
    	nodeNameSum := sha256.Sum256([]byte(globalLocalNodeName))
    	globalLocalNodeNameHex = hex.EncodeToString(nodeNameSum[:])
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
Back to top