Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApiKey string Environment string Client *http.Client = http.DefaultClient )
Functions ¶
func DispatchWithContext ¶
DispatchWithContext sends a report to HB asynchronously with context and returns the error
Types ¶
type BacktraceLine ¶
type Error ¶
type Error struct { Class string `json:"class"` Message string `json:"message"` Backtrace []*BacktraceLine `json:"backtrace"` Source map[string]interface{} `json:"source"` }
type Report ¶
type Report struct { Notifier *Notifier `json:"notifier"` Error *Error `json:"error"` Request *Request `json:"request"` Server *Server `json:"server"` }
func NewReportWithSkipCallers ¶
Create a new report using the given error message and current call stack. Supply an integer indicating how many callers to skip (0 is none).
func (*Report) AddContext ¶
Add a key and given value to the report as context
func (*Report) AddSession ¶
Add a key and given value to the report as session
type Request ¶
type Request struct { Url string `json:"url"` Component string `json:"component"` Action string `json:"action"` Params map[string]interface{} `json:"params"` Session map[string]interface{} `json:"session"` CgiData map[string]interface{} `json:"cgi_data"` Context map[string]interface{} `json:"context"` }
Click to show internal directories.
Click to hide internal directories.