diagnostics

package
v0.0.0-...-be2bb0b Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package diagnostics is used to generate diagnostics reports for the Flashlight application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingResult

type PingResult struct {
	// Only one of the following will be non-nil.
	Stats *ping.Statistics `json:",omitEmpty"`
	Error *string          `json:",omitEmpty"`
}

PingResult is the result of a ping test.

type Report

type Report struct {
	Version int

	PingDefaultGateway struct {
		diagnostics.PingResult `yaml:",omitempty"`
		Error                  *string `yaml:",omitempty"`
	}
	PingProxies map[string]PingResult
}

Report generated by Run.

func Run

func Run(proxies []bandit.Dialer) Report

Run the diagnostics.

Jump to

Keyboard shortcuts

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