messagehandler

package
v5.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package messagehandler contains useful helpers for recovering from panic conditions at runtime and logging their trace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlePanic

func HandlePanic(ctx context.Context, msg *pubsub.Message)

HandlePanic returns a panic handler function that is used to capture a panic.

func SafelyHandleMessage

func SafelyHandleMessage(ctx context.Context, fn func(ctx context.Context, message *pubsub.Message) error, msg *pubsub.Message)

SafelyHandleMessage will recover and log any panic that occurs from the function argument.

Types

This section is empty.

Jump to

Keyboard shortcuts

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