Documentation ¶
Index ¶
- func InitNetstatTimer() error
- func LogAndReportIgnorePanic(payload interface{}, stacktrace []byte)
- func LogAndReportPanic(payload interface{}, stacktrace []byte)
- func ReportCommandOutput(reportType string, command string, arguments []string) (string, error)
- func ReportPanic(payload interface{}, stacktrace []byte, exit bool)
- func ReportUpdateFailure(failureType string, failure UpdateFailure) (string, error)
- func SendReport(report ClientReport) (string, error)
- type ClientReport
- type UpdateFailure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitNetstatTimer ¶
func InitNetstatTimer() error
func LogAndReportIgnorePanic ¶
func LogAndReportIgnorePanic(payload interface{}, stacktrace []byte)
func LogAndReportPanic ¶
func LogAndReportPanic(payload interface{}, stacktrace []byte)
LogAndReportPanic reports panic to server and log to file then exit
func ReportCommandOutput ¶
ReportCommandOutput executes specified command and reports its output
func ReportPanic ¶
ReportPanic reports panic to server and log to file, exit program or ignore according to exit parameter
func ReportUpdateFailure ¶
func ReportUpdateFailure(failureType string, failure UpdateFailure) (string, error)
func SendReport ¶
func SendReport(report ClientReport) (string, error)
SendReport marshals client report data and sends to server
Types ¶
type ClientReport ¶
type UpdateFailure ¶
Click to show internal directories.
Click to hide internal directories.