mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 00:31:17 -08:00
util/clientmetric: add NewGaugeFunc and DisableDeltas omit stubs
net/sockstats uses both on darwin, ios, and android, so those builds failed with ts_omit_clientmetrics. Updates #22283 Change-Id: Ib242334dbcba639603fbf57a3b016efdecaea3d5 Signed-off-by: Brad Fitzpatrick <[email protected]>
This commit is contained in:
1 parent
7ed0138541
commit
f49c53f166
1 file changed
+2
@@ -12,6 +12,7 @@ func (*Metric) Set(int64) {}
|
||||
func (*Metric) Value() int64 { return 0 }
|
||||
func (*Metric) Register(expvarInt any) {}
|
||||
func (*Metric) UnregisterAll() {}
|
||||
func (*Metric) DisableDeltas() {}
|
||||
|
||||
type MetricUpdate struct {
|
||||
Name string `json:"name"`
|
||||
@@ -30,5 +31,6 @@ func NewCounter(string) *Metric { return &zeroMetric }
|
||||
func NewGauge(string) *Metric { return &zeroMetric }
|
||||
func NewAggregateCounter(string) *Metric { return &zeroMetric }
|
||||
func NewCounterFunc(string, func() int64) *Metric { return &zeroMetric }
|
||||
func NewGaugeFunc(string, func() int64) *Metric { return &zeroMetric }
|
||||
|
||||
func ResetForTest(any) {}
|
||||
Reference in new issue
Block a user