Documentation
¶
Overview ¶
Package doctor checks the whole player setup: the capture, the addons, the dataset cache and the client configs. It reads files only; the one thing it writes is a short-lived probe file to prove a folder is writable.
Index ¶
Constants ¶
const ( Pass = "pass" Fail = "fail" Info = "info" )
Statuses of a check. Info never fails the report.
const StaleAfter = time.Hour
StaleAfter is how old a capture may be before the doctor asks for a /reload.
Variables ¶
Addons are the folders the player installs under Interface/AddOns.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Name string `json:"name"`
Status string `json:"status" jsonschema:"pass, fail or info"`
Detail string `json:"detail"`
Fix string `json:"fix,omitempty" jsonschema:"one-line fix; set when the check failed"`
}
Check is one line of the report.
type Options ¶
type Options struct {
SavedVariables string
SVSource string // "auto", "env" or "flag": where SavedVariables came from; empty says nothing
Cache string // dataset cache root; empty means the per-user cache
Now time.Time
Env setup.Env
}
Options says what to check; Now and Env make it testable.