crashreport

package
v0.13.0 Latest Latest
Warning

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

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

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.7.0

type BugsnagCrashReporter struct {
	// contains filtered or unexported fields
}

func (*BugsnagCrashReporter) Send added in v0.7.0

func (r *BugsnagCrashReporter) Send(err CrashError) error

Send sends a crash report to bugsnag via an http call.

type CrashError added in v0.7.0

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.7.0

func (e CrashError) Error() string

type CrashReporter added in v0.7.0

type CrashReporter interface {
	Send(err CrashError) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL