Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BugsnagCrashReporter ¶
type BugsnagCrashReporter struct {
// contains filtered or unexported fields
}
func NewCrashReporter ¶
func NewCrashReporter(baseDir string, apiKey string) *BugsnagCrashReporter
NewCrashReporter creates a new bugsnag based CrashReporter. Needs an apiKey.
func (*BugsnagCrashReporter) Send ¶
func (r *BugsnagCrashReporter) Send(err CrashError) error
Send sends a crash report to bugsnag via an http call.
type CrashError ¶
type CrashError struct { Cause error Command string Context string DriverName string LogFilePath string }
CrashError describes an error that should be reported to bugsnag
func (CrashError) Error ¶
func (e CrashError) Error() string
type CrashReporter ¶
type CrashReporter interface {
Send(err CrashError) error
}
Click to show internal directories.
Click to hide internal directories.