sentrytest

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: Unlicense Imports: 3 Imported by: 0

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

func (t *Transport) Flush(timeout time.Duration) (ok bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL