Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for JoinHostPort (0.3 sec)

  1. cmd/generic-handlers.go

    		if globalBrowserRedirectURL != nil {
    			return globalBrowserRedirectURL
    		}
    		xhost, err := xnet.ParseHost(r.Host)
    		if err != nil {
    			return nil
    		}
    		return &xnet.URL{
    			Host: net.JoinHostPort(xhost.Name, globalMinioConsolePort),
    			Scheme: func() string {
    				scheme := "http"
    				if r.TLS != nil {
    					scheme = "https"
    				}
    				return scheme
    			}(),
    		}
    	}
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  2. cmd/common-main.go

    		}
    		// hold the port
    		l, err := net.Listen("TCP", fmt.Sprintf(":%s", p.String()))
    		if err == nil {
    			defer l.Close()
    		}
    		consoleAddr = net.JoinHostPort("", p.String())
    	}
    
    	if _, _, err := net.SplitHostPort(consoleAddr); err != nil {
    		logger.FatalIf(err, "Unable to start listening on console port")
    	}
    
    	if consoleAddr == addr {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  3. cmd/object-api-utils.go

    }
    
    // returns a slice of hosts by reading a slice of DNS records
    func getHostsSlice(records []dns.SrvRecord) []string {
    	hosts := make([]string, len(records))
    	for i, r := range records {
    		hosts[i] = net.JoinHostPort(r.Host, string(r.Port))
    	}
    	return hosts
    }
    
    // returns an online host (and corresponding port) from a slice of DNS records
    func getHostFromSrv(records []dns.SrvRecord) (host string) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  4. cmd/test-utils_test.go

    		for _, endpoint := range endpoints.Endpoints {
    			if endpoint.IsLocal && endpoint.Type() == URLEndpointType {
    				return endpoint.Host
    			}
    		}
    	}
    
    	return net.JoinHostPort(globalMinioHost, globalMinioPort)
    }
    
    // fetches a random number between range min-max.
    func getRandomRange(min, max int, seed int64) int {
    	// special value -1 means no explicit seeding.
    	if seed != -1 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg net, func InterfaceAddrs() ([]Addr, error)
    pkg net, func InterfaceByIndex(int) (*Interface, error)
    pkg net, func InterfaceByName(string) (*Interface, error)
    pkg net, func Interfaces() ([]Interface, error)
    pkg net, func JoinHostPort(string, string) string
    pkg net, func Listen(string, string) (Listener, error)
    pkg net, func ListenIP(string, *IPAddr) (*IPConn, error)
    pkg net, func ListenMulticastUDP(string, *Interface, *UDPAddr) (*UDPConn, error)
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top