You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
652 B
29 lines
652 B
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build ts_omit_usermetrics
|
|
|
|
package usermetric
|
|
|
|
type Registry struct {
|
|
m Metrics
|
|
}
|
|
|
|
func (*Registry) NewGauge(name, help string) *Gauge { return nil }
|
|
|
|
type MultiLabelMap[T comparable] = noopMap[T]
|
|
|
|
type noopMap[T comparable] struct{}
|
|
|
|
type Gauge struct{}
|
|
|
|
func (*Gauge) Set(float64) {}
|
|
|
|
func NewMultiLabelMapWithRegistry[T comparable](m *Registry, name string, promType, helpText string) *MultiLabelMap[T] {
|
|
return nil
|
|
}
|
|
|
|
func (*noopMap[T]) Add(T, int64) {}
|
|
func (*noopMap[T]) Set(T, any) {}
|
|
|
|
func (r *Registry) Handler(any, any) {} // no-op HTTP handler
|
|
|