Run gofmt on corpus and include deprecation.
This commit is contained in:
parent
339ecd434d
commit
552bef44bd
|
@ -50,7 +50,6 @@ type container struct {
|
||||||
name string
|
name string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
type registry struct {
|
type registry struct {
|
||||||
mutex sync.RWMutex
|
mutex sync.RWMutex
|
||||||
signatureContainers map[string]container
|
signatureContainers map[string]container
|
||||||
|
@ -63,9 +62,12 @@ type registry struct {
|
||||||
type Registry interface {
|
type Registry interface {
|
||||||
// Register a metric with a given name. Name should be globally unique.
|
// Register a metric with a given name. Name should be globally unique.
|
||||||
Register(name, docstring string, baseLabels map[string]string, metric metrics.Metric) error
|
Register(name, docstring string, baseLabels map[string]string, metric metrics.Metric) error
|
||||||
// Create a http.HandlerFunc that is tied to a Registry such that requests
|
// Create a http.HandlerFunc that is tied to a Registry such that requests
|
||||||
// against it generate a representation of the housed metrics.
|
// against it generate a representation of the housed metrics.
|
||||||
Handler() http.HandlerFunc
|
Handler() http.HandlerFunc
|
||||||
|
// This is a legacy version of Handler and is deprecated. Please stop
|
||||||
|
// using.
|
||||||
|
YieldExporter() http.HandlerFunc
|
||||||
}
|
}
|
||||||
|
|
||||||
// This builds a new metric registry. It is not needed in the majority of
|
// This builds a new metric registry. It is not needed in the majority of
|
||||||
|
|
Loading…
Reference in New Issue