tailscale/net/sockstats/sockstats_noop.go

39 lines
634 B
Go
Raw Normal View History

// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !tailscale_go || !(darwin || ios || android || ts_enable_sockstats)
package sockstats
import (
"context"
"tailscale.com/net/netmon"
"tailscale.com/types/logger"
)
const IsAvailable = false
func withSockStats(ctx context.Context, label Label, logf logger.Logf) context.Context {
return ctx
}
func get() *SockStats {
return nil
}
func getInterfaces() *InterfaceSockStats {
return nil
}
func getValidation() *ValidationSockStats {
return nil
}
func setNetMon(netMon *netmon.Monitor) {
}
func debugInfo() string {
return ""
}