mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-27 20:19:31 +00:00
net/connstats: make it modular (omittable)
Saves only 12 KB, but notably removes some deps on packages that future changes can then eliminate entirely. Updates #12614 Change-Id: Ibf830d3ee08f621d0a2011b1d4cd175427ef50df Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
2e381557b8
commit
3c7e351671
13
feature/buildfeatures/feature_connstats_disabled.go
Normal file
13
feature/buildfeatures/feature_connstats_disabled.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build ts_omit_connstats
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasConnStats is whether the binary was built with support for modular feature "Track per-packet connection statistics".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_connstats" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasConnStats = false
|
||||
13
feature/buildfeatures/feature_connstats_enabled.go
Normal file
13
feature/buildfeatures/feature_connstats_enabled.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build !ts_omit_connstats
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasConnStats is whether the binary was built with support for modular feature "Track per-packet connection statistics".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_connstats" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasConnStats = true
|
||||
@@ -130,7 +130,11 @@ var Features = map[FeatureTag]FeatureMeta{
|
||||
Deps: []FeatureTag{"c2n"},
|
||||
},
|
||||
"completion": {Sym: "Completion", Desc: "CLI shell completion"},
|
||||
"cloud": {Sym: "Cloud", Desc: "detect cloud environment to learn instances IPs and DNS servers"},
|
||||
"connstats": {
|
||||
Sym: "ConnStats",
|
||||
Desc: "Track per-packet connection statistics",
|
||||
},
|
||||
"cloud": {Sym: "Cloud", Desc: "detect cloud environment to learn instances IPs and DNS servers"},
|
||||
"dbus": {
|
||||
Sym: "DBus",
|
||||
Desc: "Linux DBus support",
|
||||
|
||||
Reference in New Issue
Block a user