- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newAPIEndpoints (0.21 sec)
-
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) -
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)