 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
      Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var NewCrashReporter = func(baseDir string, apiKey string) CrashReporter { if apiKey == "" { apiKey = defaultAPIKey } return &BugsnagCrashReporter{ baseDir: baseDir, apiKey: apiKey, } }
NewCrashReporter creates a new bugsnag based CrashReporter. Needs an apiKey.
Functions ¶
This section is empty.
Types ¶
type BugsnagCrashReporter ¶ added in v0.5.6
type BugsnagCrashReporter struct {
	// contains filtered or unexported fields
}
    func (*BugsnagCrashReporter) Send ¶ added in v0.5.6
func (r *BugsnagCrashReporter) Send(err CrashError) error
Send sends a crash report to bugsnag via an http call.
type CrashError ¶ added in v0.5.6
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 ¶ added in v0.5.6
func (e CrashError) Error() string
type CrashReporter ¶ added in v0.5.6
type CrashReporter interface {
	Send(err CrashError) error
}
     Click to show internal directories. 
   Click to hide internal directories.