Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for PoolIndex (0.31 sec)

  1. cmd/endpoint.go

    		if ep.CmdLine != pool {
    			continue
    		}
    		return id
    	}
    	return -1
    }
    
    // GetLocalPoolIdx returns the pool which endpoint belongs to locally.
    // if ep is remote this code will return -1 poolIndex
    func (l EndpointServerPools) GetLocalPoolIdx(ep Endpoint) int {
    	for i, zep := range l {
    		for _, cep := range zep.Endpoints {
    			if cep.IsLocal && ep.IsLocal {
    				if reflect.DeepEqual(cep, ep) {
    					return i
    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