Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Oxor (0.17 sec)

  1. cmd/metrics-v3-types.go

    	}
    	return v.toPromName(mg.CollectorPath.metricPrefix())
    }
    
    func (mg *MetricsGroup) validate() {
    	if len(mg.Descriptors) == 0 {
    		panic("Descriptors must be set")
    	}
    
    	// For bools A and B, A XOR B <=> A != B.
    	isExactlyOneSet := (mg.loader == nil) != (mg.bucketLoader == nil)
    	if !isExactlyOneSet {
    		panic("Exactly one Loader function must be set")
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:05:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
Back to top