Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/server-startup-msg_test.go

    	newAPIEndpoints := stripStandardPorts(apiEndpoints, "")
    
    	if !reflect.DeepEqual(expectedAPIEndpoints, newAPIEndpoints) {
    		t.Fatalf("Expected %#v, got %#v", expectedAPIEndpoints, newAPIEndpoints)
    	}
    
    	apiEndpoints = []string{"http://%%%%%:9000"}
    	newAPIEndpoints = stripStandardPorts(apiEndpoints, "")
    	if !reflect.DeepEqual(apiEndpoints, newAPIEndpoints) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. cmd/server-startup-msg.go

    // port "80" and "443" before displaying on the startup
    // banner.  Returns a new list of API endpoints.
    func stripStandardPorts(apiEndpoints []string, host string) (newAPIEndpoints []string) {
    	if len(apiEndpoints) == 1 {
    		return apiEndpoints
    	}
    	newAPIEndpoints = make([]string, len(apiEndpoints))
    	// Check all API endpoints for standard ports and strip them.
    	for i, apiEndpoint := range apiEndpoints {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top