healthcheck

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DERPNodeReport

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

	CanExchangeMessages bool          `json:"can_exchange_messages"`
	RoundTripPing       time.Duration `json:"round_trip_ping"`
	UsesWebsocket       bool          `json:"uses_websocket"`
	ClientLogs          [][]string    `json:"client_logs"`
	ClientErrs          [][]error     `json:"client_errs"`

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

func (*DERPNodeReport) Run

func (r *DERPNodeReport) Run(ctx context.Context) error

type DERPRegionReport

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

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

func (*DERPRegionReport) Run

func (r *DERPRegionReport) Run(ctx context.Context) error

type DERPReport

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

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

	Netcheck     *netcheck.Report `json:"netcheck"`
	NetcheckLogs []string         `json:"netcheck_logs"`
	// contains filtered or unexported fields
}

func (*DERPReport) Run

func (r *DERPReport) Run(ctx context.Context, opts *DERPReportOptions) error

type DERPReportOptions

type DERPReportOptions struct {
	DERPMap *tailcfg.DERPMap
}

type DERPStunReport

type DERPStunReport struct {
	Enabled bool
	CanSTUN bool
	Error   error
}

type Report

type Report struct {
	// Time is the time the report was generated at.
	Time time.Time `json:"time"`
	// Healthy is true if the report returns no errors.
	Healthy bool `json:"pass"`

	DERP DERPReport `json:"derp"`
}

func Run

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

type ReportOptions

type ReportOptions struct {
	// TODO: support getting this over HTTP?
	DERPMap *tailcfg.DERPMap
}

type WebsocketReport

type WebsocketReport struct{}

Jump to

Keyboard shortcuts

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