doctor

package
v1.106.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: BSD-3-Clause Imports: 3 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package doctor contains more in-depth healthchecks that can be run to aid in diagnosing Tailscale issues.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChecks

func RunChecks(ctx context.Context, log logger.Logf, checks ...Check)

RunChecks runs a list of checks in parallel, and logs any returned errors after all checks have returned.

Types

type Check

type Check interface {
	// Name should return a name describing this check, in lower-kebab-case
	// (i.e. "my-check", not "MyCheck" or "my_check").
	Name() string
	// Run executes the check, logging diagnostic information to the
	// provided logger function.
	Run(context.Context, logger.Logf) error
}

Check is the interface defining a singular check.

A check should log information that it gathers using the provided log function, and should attempt to make as much progress as possible in error conditions.

func CheckFunc

func CheckFunc(name string, run func(context.Context, logger.Logf) error) Check

CheckFunc creates a Check from a name and a function.

Directories

Path Synopsis
Package ethtool provides a doctor.Check that prints diagnostic information obtained from the 'ethtool' utility on the current system.
Package ethtool provides a doctor.Check that prints diagnostic information obtained from the 'ethtool' utility on the current system.
Package permissions provides a doctor.Check that prints the process permissions for the running process.
Package permissions provides a doctor.Check that prints the process permissions for the running process.
Package routetable provides a doctor.Check that dumps the current system's route table to the log.
Package routetable provides a doctor.Check that dumps the current system's route table to the log.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL