Files
coreth/metrics/gatherer/interfaces.go
zeekay f70bac500d refactor: migrate to vm/rpc/chain, remove node dependency from production code
- Update import from vm/rpcchainvm to vm/rpc/chain
- Update vm dependency to v1.0.18
- node dependency now test-only (platformvm.NewClient for warp tests)
2026-01-11 21:38:33 -08:00

14 lines
491 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// See the file LICENSE for licensing terms.
package gatherer
// Registry is a narrower interface of a metrics registry containing
// only the required functions for the [Gatherer].
type Registry interface {
// Call the given function for each registered metric.
Each(func(string, any))
// Get the metric by the given name or nil if none is registered.
Get(string) any
}