Back to godoc.org

Package registry

v0.0.0-...-d4769a7
Latest Go to latest

The latest major version is .

Published: Aug 1, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Overview

Package registry holds a map of all metrics registered by the process.

This map is global and it is populated during init() time, when individual metrics are defined.

Index

func Add

func Add(m types.Metric)

Add adds a metric to the metric registry.

Panics if a metric with such name is already defined.

func Iter

func Iter(cb func(m types.Metric))

Iter calls a callback for each registered metric.

Metrics are visited in no particular order. The callback must not modify the registry.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier