Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GetPoolIdx (0.18 sec)

  1. cmd/endpoint.go

    	for _, v := range nodesMap {
    		nodes = append(nodes, v)
    	}
    	sort.Slice(nodes, func(i, j int) bool {
    		return nodes[i].Host < nodes[j].Host
    	})
    	return
    }
    
    // GetPoolIdx return pool index
    func (l EndpointServerPools) GetPoolIdx(pool string) int {
    	for id, ep := range globalEndpoints {
    		if ep.CmdLine != pool {
    			continue
    		}
    		return id
    	}
    	return -1
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
Back to top