Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostics ¶
type Diagnostics struct {
Hostname string `json:"hostname"`
AvgLoad *load.AvgStat `json:"avgLoad"`
ExtraInfo any `json:"extraInfo"`
}
func GetDiagnostics ¶
func GetDiagnostics() Diagnostics
type Payload ¶
type Payload struct {
Version string `json:"version"`
Number int64 `json:"number"`
Time int64 `json:"time"`
Info Diagnostics `json:"info"`
}
func GetPayload ¶
func GetPayload() Payload
func ParsePayload ¶
type Response ¶
type Response struct {
Valid bool `json:"valid"`
Duration time.Duration `json:"duration"`
Time time.Time `json:"time"`
Number int64 `json:"number"`
}
func ParseResponse ¶
func ResponseNo ¶
func ResponseNo() Response
func ResponseYes ¶
Click to show internal directories.
Click to hide internal directories.