Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for descriptorMap (0.07 sec)

  1. cmd/metrics-v3-types.go

    	isExactlyOneSet := (mg.loader == nil) != (mg.bucketLoader == nil)
    	if !isExactlyOneSet {
    		panic("Exactly one Loader function must be set")
    	}
    
    	mg.descriptorMap = make(map[MetricName]MetricDescriptor, len(mg.Descriptors))
    	for _, desc := range mg.Descriptors {
    		mg.descriptorMap[desc.Name] = desc
    	}
    }
    
    // SetCache is a helper to initialize MetricsGroup. It sets the cache object.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Jul 30 22:28:46 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top