diagnostics

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 20 Imported by: 0 modules, 0 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

Index

Constants

View Source
const DefaultMclogsAPIURL = DefaultPasteAPIURL

DefaultMclogsAPIURL is kept as an alias for backwards compatibility with existing callers and CLI flags.

View Source
const DefaultPasteAPIURL = "https://pastes.mythicalsystems.org/log"

DefaultPasteAPIURL is the MythicalSystems pastes API (mclo.gs-compatible) endpoint used for diagnostics uploads.

Variables

View Source
var (
	ErrMissingUploadAPIURL = errors.New("diagnostics: upload api url is required")
	ErrInvalidUploadAPIURL = errors.New("diagnostics: upload api url is invalid")
)

Functions

func GenerateDiagnosticsReport

func GenerateDiagnosticsReport(includeEndpoints bool, includeLogs bool, logLines int) (string, error)

GenerateDiagnosticsReport collects diagnostic data and returns it as a string.

func UploadReport

func UploadReport(ctx context.Context, apiURL string, content string) (string, error)

UploadReport posts diagnostics content to the given mclo.gs-compatible paste API endpoint and returns the resulting URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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