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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
}

Jump to

Keyboard shortcuts

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