diagnostics

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMclogsAPIURL = "https://api.featherpanel.com/1/log"

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 mclogs-compatible 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