derphealth

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeReport

type NodeReport struct {
	Healthy bool              `json:"healthy"`
	Node    *tailcfg.DERPNode `json:"node"`

	ServerInfo          derp.ServerInfoMessage `json:"node_info"`
	CanExchangeMessages bool                   `json:"can_exchange_messages"`
	RoundTripPing       string                 `json:"round_trip_ping"`
	RoundTripPingMs     int                    `json:"round_trip_ping_ms"`
	UsesWebsocket       bool                   `json:"uses_websocket"`
	ClientLogs          [][]string             `json:"client_logs"`
	ClientErrs          [][]string             `json:"client_errs"`
	Error               *string                `json:"error"`

	STUN StunReport `json:"stun"`
	// contains filtered or unexported fields
}

@typescript-generate NodeReport

func (*NodeReport) Run

func (r *NodeReport) Run(ctx context.Context)

type RegionReport

type RegionReport struct {
	Healthy bool `json:"healthy"`

	Region      *tailcfg.DERPRegion `json:"region"`
	NodeReports []*NodeReport       `json:"node_reports"`
	Error       *string             `json:"error"`
	// contains filtered or unexported fields
}

@typescript-generate RegionReport

func (*RegionReport) Run

func (r *RegionReport) Run(ctx context.Context)

type Report

type Report struct {
	Healthy bool `json:"healthy"`

	Regions map[int]*RegionReport `json:"regions"`

	Netcheck     *netcheck.Report `json:"netcheck"`
	NetcheckErr  *string          `json:"netcheck_err"`
	NetcheckLogs []string         `json:"netcheck_logs"`

	Error *string `json:"error"`
}

@typescript-generate Report

func (*Report) Run

func (r *Report) Run(ctx context.Context, opts *ReportOptions)

type ReportOptions

type ReportOptions struct {
	DERPMap *tailcfg.DERPMap
}

type StunReport

type StunReport struct {
	Enabled bool
	CanSTUN bool
	Error   *string
}

@typescript-generate StunReport

Jump to

Keyboard shortcuts

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