Version: v0.10.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 12 Imported by: 0




This section is empty.


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.


This section is empty.


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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL