View definition

(Registry).GetOrRegister

Defined in github.com/rcrowley/go-metrics/registry.go

Description

Gets an existing metric or registers the given one. The interface can be the metric to register if not found in registry, or a function returning the metric for lazy instantiation.

GetOrRegister is referenced in 7 repositories

github.com/rcrowley/go-metrics github.com/appscode/metlia github.com/snikch/api

...