Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for if (0.11 sec)

  1. internal/logger/config.go

    			if target == legacyEnvLoggerHTTPEndpoint {
    				target = config.Default
    			}
    			loggerTargets = append(loggerTargets, target)
    		}
    
    		// Load HTTP logger from the environment if found
    		for _, target := range loggerTargets {
    			endpoint := getCfgVal(legacyEnvLoggerHTTPEndpoint, target, "")
    			if endpoint == "" {
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. internal/config/identity/plugin/config.go

    	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)
    	if reqTimeMinute.After(h.currentMinute.statsTime) {
    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)
  3. internal/config/config.go

    	// Check if config param requested is valid.
    	defKVS, ok := DefaultKVS[subSys]
    	if !ok {
    		return
    	}
    
    	defValue, isFound := defKVS.Lookup(cfgParam)
    	// Comments usually are absent from `defKVS`, so we handle it specially.
    	if !isFound && cfgParam == Comment {
    		defValue, isFound = "", true
    	}
    	if !isFound {
    		return
    	}
    
    	if target == "" {
    		target = Default
    	}
    
    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