recoverer

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recoverer

type Recoverer struct {
	// contains filtered or unexported fields
}

Recoverer is a transport wrapper that handles panics that occur in the underlying transport.

func New

New creates a new Recoverer transport.

func (*Recoverer) Broadcast

func (r *Recoverer) Broadcast(topic string, message transport.Message) (err error)

Broadcast implements the transport.Transport interface.

func (*Recoverer) Messages

func (r *Recoverer) Messages(topic string) <-chan transport.ReceivedMessage

Messages implements the transport.Transport interface.

func (*Recoverer) Start

func (r *Recoverer) Start(ctx context.Context) error

Start implements the transport.Transport interface.

func (*Recoverer) Wait

func (r *Recoverer) Wait() <-chan error

Wait implements the transport.Transport interface.

Jump to

Keyboard shortcuts

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