Documentation
¶
Index ¶
- type Error
- type Notice
- type Notifier
- func (n *Notifier) AddFilter(fn filter)
- func (n *Notifier) Flush()
- func (n *Notifier) Notice(err interface{}, req *http.Request, depth int) *Notice
- func (n *Notifier) Notify(e interface{}, req *http.Request)
- func (n *Notifier) SendNotice(notice *Notice) (string, error)
- func (n *Notifier) SetHost(h string)
- type StackFrame
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Type string `json:"type"` Message string `json:"message"` Backtrace []StackFrame `json:"backtrace"` }
type Notice ¶
type Notifier ¶
func NewNotifier ¶
func (*Notifier) AddFilter ¶
func (n *Notifier) AddFilter(fn filter)
AddFilter adds filter that can modify or ignore notice.
func (*Notifier) Notice ¶
Notice returns Aibrake notice created from error and request. depth determines which call frame to use.
func (*Notifier) SendNotice ¶
SendNotice sends notice to Airbrake.
func (*Notifier) SetHost ¶
Sets Airbrake host name. Default is https://airbrake.io.
type StackFrame ¶
Click to show internal directories.
Click to hide internal directories.