Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for elseif (0.21 sec)

  1. internal/config/identity/plugin/config.go

    	h.Lock()
    	defer h.Unlock()
    
    	// Update connectivity times
    	if isSuccess {
    		if reqStartTime.After(h.LastCheckSuccess) {
    			h.LastCheckSuccess = reqStartTime
    		}
    	} else {
    		if reqStartTime.After(h.LastCheckFailure) {
    			h.LastCheckFailure = reqStartTime
    		}
    	}
    
    	// Round the request time *down* to whole minute.
    	reqTimeMinute := reqStartTime.Truncate(time.Minute)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.3K bytes
    - Viewed (3)
  2. internal/config/config.go

    				return Error[ErrConfigNotFound]("key %s doesn't exist", delKey)
    			}
    			defVal, isDef := defKVS.Lookup(delKey)
    			if isDef {
    				currKVS.Set(delKey, defVal)
    			} else {
    				currKVS.Delete(delKey)
    			}
    		}
    		c[subSys][tgt] = currKVS
    	} else {
    		delete(c[subSys], tgt)
    	}
    	return nil
    }
    
    // Clone - clones a config map entirely.
    func (c Config) Clone() Config {
    	cp := New()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
Back to top