Documentation
¶
Index ¶
- Constants
- Variables
- func ScanJavaErrorsIntoChan(r io.Reader) (<-chan *JavaError, <-chan error)
- type AffectedLevel
- type Analyzer
- func (a *Analyzer) DoError(jerr *JavaError) (matched []SolutionPossibility, err error)
- func (a *Analyzer) DoLogStream(c context.Context, r io.Reader) (<-chan *ErrorResult, context.Context)
- func (a *Analyzer) HardCodedChecks(jerr *JavaError) (desc *ErrorDesc, err error)
- func (a *Analyzer) UpdateErrors() (err error)
- type CrashReport
- type DetailsItem
- type ErrorDB
- type ErrorDesc
- type ErrorResult
- type HeadThread
- type JavaError
- type ReportDetails
- type SolutionDesc
- type SolutionPossibility
- type StackInfo
- type Stacktrace
Constants ¶
View Source
const ModConflictSolutionID = 12
Variables ¶
View Source
var ( ErrUnexpectedIndent = errors.New("Crash report details format incorrect: unexpected indent") ErrMissingColon = errors.New("Crash report details format incorrect: missing colon") )
View Source
var (
ErrCrashReportIncomplete = errors.New("Crashreport is incomplete")
)
Functions ¶
Types ¶
type AffectedLevel ¶
type AffectedLevel struct { Details ReportDetails `json:"details"` Stacktrace Stacktrace `json:"stacktrace"` }
-- Affected level --
type Analyzer ¶
type Analyzer struct { DB ErrorDB // contains filtered or unexported fields }
func NewAnalyzer ¶
func (*Analyzer) DoError ¶
func (a *Analyzer) DoError(jerr *JavaError) (matched []SolutionPossibility, err error)
func (*Analyzer) DoLogStream ¶ added in v0.4.19
func (*Analyzer) HardCodedChecks ¶ added in v0.6.0
func (*Analyzer) UpdateErrors ¶ added in v0.5.0
type CrashReport ¶
type CrashReport struct { Description string `json:"description"` // Description: Error *JavaError `json:"error"` HeadThread HeadThread `json:"head"` // -- Head -- AffectedLevel AffectedLevel `json:"affectedLevel"` // -- Affected level -- OtherDetails map[string]DetailsItem `json:"others"` // -- <KEY> -- }
func ParseCrashReport ¶
func ParseCrashReport(r io.Reader) (report *CrashReport, err error)
func (*CrashReport) GetDetails ¶
func (report *CrashReport) GetDetails(key string) (value DetailsItem)
type DetailsItem ¶
type DetailsItem struct {
Details ReportDetails `json:"details"`
}
type ErrorResult ¶ added in v0.4.19
type ErrorResult struct { Error *JavaError `json:"error"` Matched []SolutionPossibility `json:"matched"` File string `json:"file,omitempty"` }
type HeadThread ¶
type HeadThread struct { Thread string `json:"thread"` Stacktrace Stacktrace `json:"stacktrace"` }
-- Head --
type JavaError ¶
type JavaError struct { Class string `json:"class"` Message string `json:"message"` Stacktrace Stacktrace `json:"stacktrace"` CausedBy *JavaError `json:"causedBy"` // extra infos LineNo int `json:"lineNo"` // which line did the error start }
type ReportDetails ¶
Details:
func (ReportDetails) Get ¶
func (d ReportDetails) Get(key string) (value string)
func (ReportDetails) GetValues ¶
func (d ReportDetails) GetValues(key string) (values []string)
func (ReportDetails) Has ¶
func (d ReportDetails) Has(key string) (ok bool)
type SolutionDesc ¶
type SolutionPossibility ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.