Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewEndpoints (0.08 sec)

  1. cmd/endpoint.go

    			endpointLocalMap[ep.Host] = ep.IsLocal
    		}
    	}
    	for i := range endpoints {
    		endpoints[i].IsLocal = endpointLocalMap[endpoints[i].Host]
    	}
    	return nil
    }
    
    // NewEndpoints - returns new endpoint list based on input args.
    func NewEndpoints(args ...string) (endpoints Endpoints, err error) {
    	var endpointType EndpointType
    	var scheme string
    
    	uniqueArgs := set.NewStringSet()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  2. cmd/endpoint_test.go

    	}
    
    	for _, testCase := range testCases {
    		_, err := NewEndpoints(testCase.args...)
    		switch {
    		case testCase.expectedErr == nil:
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		case err == nil:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top