Versions in this module Expand all Collapse all v0 v0.1.0 Oct 23, 2018 Changes in this version + const DEBUG + const ERROR + const FATAL + const INFO + const WARNING + var DefaultClient = newClient(nil) + var ErrInvalidSampleRate = errors.New("raven: sample rate should be between 0 and 1") + var ErrMissingProjectID = errors.New("raven: dsn missing project id") + var ErrMissingUser = errors.New("raven: dsn missing public key and/or password") + var ErrPacketDropped = errors.New("raven: packet dropped") + var ErrUnableToUnmarshalJSON = errors.New("raven: unable to unmarshal JSON") + var MaxQueueBuffer = 100 + func Capture(packet *Packet, captureTags map[string]string) (eventID string, ch chan error) + func CaptureError(err error, tags map[string]string, interfaces ...Interface) string + func CaptureErrorAndWait(err error, tags map[string]string, interfaces ...Interface) string + func CaptureMessage(message string, tags map[string]string, interfaces ...Interface) string + func CaptureMessageAndWait(message string, tags map[string]string, interfaces ...Interface) string + func CapturePanic(f func(), tags map[string]string, interfaces ...Interface) (interface{}, string) + func CapturePanicAndWait(f func(), tags map[string]string, interfaces ...Interface) (interface{}, string) + func ClearContext() + func Close() + func IncludePaths() []string + func ProjectID() string + func Recoverer(handler http.Handler) http.Handler + func RecoveryHandler(handler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request) + func Release() string + func SetDSN(dsn string) error + func SetDefaultLoggerName(name string) + func SetEnvironment(environment string) + func SetHttpContext(h *Http) + func SetIgnoreErrors(errs ...string) error + func SetIncludePaths(p []string) + func SetRelease(release string) + func SetSampleRate(rate float32) error + func SetSourceCodeLoader(loader SourceCodeLoader) + func SetTagsContext(t map[string]string) + func SetUserContext(u *User) + func URL() string + func Wait() + func WrapWithExtra(err error, extraInfo map[string]interface{}) error + type Client struct + DropHandler func(*Packet) + Tags map[string]string + Transport Transport + func New(dsn string) (*Client, error) + func NewClient(dsn string, tags map[string]string) (*Client, error) + func NewWithTags(dsn string, tags map[string]string) (*Client, error) + func (c *Client) ClearContext() + func (c *Client) SetHttpContext(h *Http) + func (c *Client) SetIgnoreErrors(errs []string) error + func (c *Client) SetTagsContext(t map[string]string) + func (c *Client) SetUserContext(u *User) + func (client *Client) Capture(packet *Packet, captureTags map[string]string) (eventID string, ch chan error) + func (client *Client) CaptureError(err error, tags map[string]string, interfaces ...Interface) string + func (client *Client) CaptureErrorAndWait(err error, tags map[string]string, interfaces ...Interface) string + func (client *Client) CaptureMessage(message string, tags map[string]string, interfaces ...Interface) string + func (client *Client) CaptureMessageAndWait(message string, tags map[string]string, interfaces ...Interface) string + func (client *Client) CapturePanic(f func(), tags map[string]string, interfaces ...Interface) (err interface{}, errorID string) + func (client *Client) CapturePanicAndWait(f func(), tags map[string]string, interfaces ...Interface) (err interface{}, errorID string) + func (client *Client) Close() + func (client *Client) IncludePaths() []string + func (client *Client) ProjectID() string + func (client *Client) Release() string + func (client *Client) SetDSN(dsn string) error + func (client *Client) SetDefaultLoggerName(name string) + func (client *Client) SetEnvironment(environment string) + func (client *Client) SetIncludePaths(p []string) + func (client *Client) SetRelease(release string) + func (client *Client) SetSampleRate(rate float32) error + func (client *Client) URL() string + func (client *Client) Wait() + type Culpriter interface + Culprit func() string + type ErrWithExtra interface + Cause func() error + Error func() string + ExtraInfo func() Extra + type Exception struct + Module string + Stacktrace *Stacktrace + Type string + Value string + func NewException(err error, stacktrace *Stacktrace) *Exception + func (e *Exception) Class() string + func (e *Exception) Culprit() string + type Exceptions struct + Values []*Exception + func (es Exceptions) Class() string + type Extra map[string]interface + type HTTPTransport struct + func (t *HTTPTransport) Send(url, authHeader string, packet *Packet) error + type Http struct + Cookies string + Data interface{} + Env map[string]string + Headers map[string]string + Method string + Query string + URL string + func NewHttp(req *http.Request) *Http + func (h *Http) Class() string + type Interface interface + Class func() string + type Message struct + Message string + Params []interface{} + func (m *Message) Class() string + type Packet struct + Culprit string + Environment string + EventID string + Extra Extra + Fingerprint []string + Interfaces []Interface + Level Severity + Logger string + Message string + Modules map[string]string + Platform string + Project string + Release string + ServerName string + Tags Tags + Timestamp Timestamp + func NewPacket(message string, interfaces ...Interface) *Packet + func NewPacketWithExtra(message string, extra Extra, interfaces ...Interface) *Packet + func (packet *Packet) AddTags(tags map[string]string) + func (packet *Packet) Init(project string) error + func (packet *Packet) JSON() ([]byte, error) + type Query struct + Engine string + Query string + func (q *Query) Class() string + type Severity string + type SourceCodeLoader interface + Load func(filename string, line, context int) ([][]byte, int) + type Stacktrace struct + Frames []*StacktraceFrame + func GetOrNewStacktrace(err error, skip int, context int, appPackagePrefixes []string) *Stacktrace + func NewStacktrace(skip int, context int, appPackagePrefixes []string) *Stacktrace + func (s *Stacktrace) Class() string + func (s *Stacktrace) Culprit() string + type StacktraceFrame struct + AbsolutePath string + Colno int + ContextLine string + Filename string + Function string + InApp bool + Lineno int + Module string + PostContext []string + PreContext []string + func NewStacktraceFrame(pc uintptr, file string, line, context int, appPackagePrefixes []string) *StacktraceFrame + type Tag struct + Key string + Value string + func (t *Tag) UnmarshalJSON(data []byte) error + func (tag *Tag) MarshalJSON() ([]byte, error) + type Tags []Tag + func (t *Tags) UnmarshalJSON(data []byte) error + type Template struct + AbsolutePath string + ContextLine string + Filename string + Lineno int + PostContext []string + PreContext []string + func (t *Template) Class() string + type Timestamp time.Time + func (t Timestamp) MarshalJSON() ([]byte, error) + func (timestamp *Timestamp) UnmarshalJSON(data []byte) error + func (timestamp Timestamp) Format(format string) string + type Transport interface + Send func(url, authHeader string, packet *Packet) error + type User struct + Email string + ID string + IP string + Username string + func (h *User) Class() string + type Writer struct + Client *Client + Level Severity + Logger string + func (w *Writer) Write(p []byte) (int, error)