Documentation ¶
Overview ¶
Package report contains CLI error reporting and handling and cleanup methods. This is mostly required due to the impossibility to catch `os.Exit`s (https://stackoverflow.com/questions/39509447/trap-os-exit-in-golang) and other funkiness around error paths.
This package currently only tracks the m3o platform calls. Please use `1` event values for failure and `0` for success to be consistent in our Google Analytics alerts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(ctx *cli.Context, a ...interface{})
Error is a helper function to record error events
func Errorf ¶
func Errorf(ctx *cli.Context, format string, a ...interface{})
Errorf is a helper function to record error events
func Success ¶
func Success(ctx *cli.Context, a ...interface{})
Success is a helper function to record success events
func Successf ¶
func Successf(ctx *cli.Context, format string, a ...interface{})
Successf is a helper function to record success events
func TrackEvent ¶
func TrackEvent(ctx *cli.Context, td TrackingData) error
TrackEvent records an event on google analytics For details consult https://support.google.com/analytics/answer/1033068?hl=en
Example: Category: "Videos" Action: "Downloaded" Label: "Gone With the Wind"