View definition

(*StandardRegistry).GetOrRegister

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

Description

Gets an existing metric or creates and registers a new one. Threadsafe alternative to calling Get and Register on failure. 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 0 repositories