registry

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) collector.Collector

Get retrieves a collector by name. Returns nil if the collector is not found.

func IsRegistered

func IsRegistered(name string) bool

IsRegistered checks if a collector with the given name is registered.

func List

func List() []string

List returns all registered collector names.

func Register

func Register(collector collector.Collector) error

Register registers a collector with a given name. If a collector with the same name is already registered, it returns an error.

func Unregister

func Unregister(name string) error

Unregister removes a collector from the registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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