Skip to content

Commit

Permalink
Merge pull request prometheus#4 from prometheus/usability/sundry
Browse files Browse the repository at this point in the history
Run gofmt on corpus and include deprecation.
  • Loading branch information
juliusv committed Feb 18, 2013
2 parents 339ecd4 + 95af66a commit ed0a3bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contributor/documentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

// A repository of various contributed Prometheus client components that may
// assist in your use of the library.
package contributor
package contributor
2 changes: 1 addition & 1 deletion documentation/documentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// in the LICENSE file.

// A repository of various Prometheus client documentation and advice.
package documentation
package documentation
2 changes: 1 addition & 1 deletion documentation/styleguide.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
// post-processing job. The same goes for archiving. I will need to evaluate
// hooks into something like OpenTSBD.

package documentation
package documentation
8 changes: 5 additions & 3 deletions registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ type container struct {
name string
}


type registry struct {
mutex sync.RWMutex
signatureContainers map[string]container
Expand All @@ -63,9 +62,12 @@ type registry struct {
type Registry interface {
// Register a metric with a given name. Name should be globally unique.
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
// against it generate a representation of the housed metrics.
// Create a http.HandlerFunc that is tied to a Registry such that requests
// against it generate a representation of the housed metrics.
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
Expand Down

0 comments on commit ed0a3bc

Please sign in to comment.