subee_recovery

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchConsumerInterceptor

func BatchConsumerInterceptor(f RecoveryHandlerFunc) subee.BatchConsumerInterceptor

BatchConsumerInterceptor returns a new batch consumer interceptor to recovery from panic.

func ConsumerInterceptor

func ConsumerInterceptor(f RecoveryHandlerFunc) subee.ConsumerInterceptor

ConsumerInterceptor returns a new consumer interceptor to recovery from panic.

Types

type RecoveryHandlerFunc

type RecoveryHandlerFunc func(ctx context.Context, p interface{}) error

RecoveryHandlerFunc is a function that recovers from the panic `p`

Jump to

Keyboard shortcuts

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