promutil

package
v0.35.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package promutil contains Prometheus-related utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyRegisterer

type EmptyRegisterer struct{}

EmptyRegisterer is an implementation of the prometheus.Registerer that does nothing.

func (EmptyRegisterer) MustRegister

func (EmptyRegisterer) MustRegister(_ ...prometheus.Collector)

MustRegister implements the prometheus.Registerer for EmptyRegistrer.

func (EmptyRegisterer) Register

func (EmptyRegisterer) Register(_ prometheus.Collector) (err error)

Register implements the prometheus.Registerer for EmptyRegistrer. err is always nil.

func (EmptyRegisterer) Unregister

func (EmptyRegisterer) Unregister(_ prometheus.Collector) (ok bool)

Unregister implements the prometheus.Registerer for EmptyRegistrer. ok is always true.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL