Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close()
Close flushes the Client's buffer and releases the associated ressources. The Client and all the cloned Clients must not be used afterward.
func RecoveryHandler ¶
func RecoveryHandler(handler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
RecoveryHandler wraps the stdlib net/http Mux.
Types ¶
type Client ¶
type Client interface { Capture(packet *raven.Packet, captureTags map[string]string) (eventID string, ch chan error) CaptureError(err error, tags map[string]string, interfaces ...raven.Interface) string Close() }
Client is a client to send logs to Sentry.
type NoopClient ¶
type NoopClient struct{}
A NoopClient is a trivial, minimum overhead implementation of Client for which all operations are no-ops.
func (*NoopClient) Capture ¶
func (nc *NoopClient) Capture(packet *raven.Packet, captureTags map[string]string) (eventID string, ch chan error)
Capture implements Client interface.
func (*NoopClient) CaptureError ¶
func (nc *NoopClient) CaptureError(err error, tags map[string]string, interfaces ...raven.Interface) string
CaptureError implements Client interface.
Click to show internal directories.
Click to hide internal directories.