Documentation ¶
Overview ¶
Package errorreporter provides error reporting functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Do will be used as defer func to recover panic and report error if panic detected. Also update err if err != nil.
func Enabled ¶
func Enabled() bool
Enabled reports DefaultErrorReporter is configured to report crash to stackdriver.
func ReportSync ¶
func ReportSync(ctx context.Context, e errorreporting.Entry) error
ReportSync reports entry with DefaultErrorReporter.
Types ¶
type ErrorReporter ¶
type ErrorReporter interface { Close() error Flush() Report(e errorreporting.Entry) ReportSync(ctx context.Context, e errorreporting.Entry) error }
ErrorReporter is an interface to report crash to stackdriver error reporting.
var DefaultErrorReporter ErrorReporter = nopErrorReporter{}
Click to show internal directories.
Click to hide internal directories.