Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getValue (0.18 sec)

  1. cmd/metrics-v2.go

    		}
    		labels1["le"] = fmt.Sprintf("%.3f", math.Inf(+1))
    		metrics = append(metrics, MetricV2{
    			Description:    desc,
    			VariableLabels: labels1,
    			Value:          dtoMetric.Counter.GetValue(),
    		})
    	}
    	return metrics
    }
    
    func getBucketTTFBMetric() *MetricsGroupV2 {
    	mg := &MetricsGroupV2{
    		cacheInterval: 10 * time.Second,
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 21:22:15 GMT 2024
    - 132.1K bytes
    - Viewed (0)
  2. cmd/server_test.go

    }
    
    type check struct {
    	*testing.T
    	testType string
    }
    
    // Assert - checks if gotValue is same as expectedValue, if not fails the test.
    func (c *check) Assert(gotValue interface{}, expectedValue interface{}) {
    	c.Helper()
    	if !reflect.DeepEqual(gotValue, expectedValue) {
    		c.Fatalf("Test %s expected %v, got %v", c.testType, expectedValue, gotValue)
    	}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top