Documentation ¶
Overview ¶
Package sentrytest contains fake implementations of interfaces for the Sentry module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct { OnConfigure func(opts sentry.ClientOptions) OnFlush func(timeout time.Duration) (ok bool) OnSendEvent func(e *sentry.Event) }
Transport is a sentry.Transport implementation for tests.
func NewTransport ¶
func NewTransport() (tst *Transport)
NewTransport returns a new *Transport all methods of which panic.
func (*Transport) Configure ¶
func (t *Transport) Configure(opts sentry.ClientOptions)
Configure implements the sentry.Transport interface for the *Transport.
func (*Transport) Flush ¶
Flush implements the sentry.Transport interface for the *Transport.
func (*Transport) SendEvent ¶
func (t *Transport) SendEvent(e *sentry.Event)
SendEvent implements the sentry.Transport interface for the *Transport.
Click to show internal directories.
Click to hide internal directories.