Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for mustSplitHostPort (0.09 sec)

  1. cmd/net_test.go

    		{"server:54321", "server", "54321"},
    		{":0", "", "0"},
    		{"server:https", "server", "443"},
    		{"server:http", "server", "80"},
    	}
    
    	for _, testCase := range testCases {
    		host, port := mustSplitHostPort(testCase.hostPort)
    		if testCase.expectedHost != host {
    			t.Fatalf("host: expected = %v, got = %v", testCase.expectedHost, host)
    		}
    
    		if testCase.expectedPort != port {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. cmd/common-main.go

    	}
    
    	globalMinioHost, globalMinioPort = mustSplitHostPort(addr)
    	if globalMinioPort == "0" {
    		p, err := xnet.GetFreePort()
    		if err != nil {
    			logger.FatalIf(err, "Unable to get free port for S3 API on the host")
    		}
    		globalMinioPort = p.String()
    		globalDynamicAPIPort = true
    	}
    
    	if globalBrowserEnabled {
    		globalMinioConsoleHost, globalMinioConsolePort = mustSplitHostPort(consoleAddr)
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	globalObjLayerMutex.Lock()
    	globalObjectAPI = objLayer
    	globalObjLayerMutex.Unlock()
    
    	// initialize peer rpc
    	host, port := mustSplitHostPort(testServer.Server.Listener.Addr().String())
    	globalMinioHost = host
    	globalMinioPort = port
    	globalMinioAddr = getEndpointsLocalAddr(testServer.Disks)
    
    	initAllSubsystems(ctx)
    
    	globalEtcdClient = nil
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
Back to top