recov

package
v0.0.0-...-72af66c Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0, BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package recov support recover handler Copyright (c) 2020 Tencent Serverless * All rights reserved * Author: jiangdu * Date: 2020-06-08

Package recov support recover handler * Copyright (c) 2020 Tencent Serverless * All rights reserved * Author: jiangdu * Date: 2020-06-08

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpStacktrace

func DumpStacktrace(skip int, attach interface{}) string

func GoWithRecover

func GoWithRecover(handler func(), panicHandlers ...func(panicError interface{}))

func GoWithRetry

func GoWithRetry(handler func(), retries int, panicHandlers ...func(panicError interface{}))

func GoWithWaitGroup

func GoWithWaitGroup(wg *sync.WaitGroup, handler func(), panicHandlers ...func(panicError interface{}))

func HandleCrash

func HandleCrash(additionalHandlers ...func(panicError interface{}))

func RegisterGlobalHandler

func RegisterGlobalHandler(handler func(interface{}))

func WithRecover

func WithRecover(handler func(), panicHandlers ...func(panicError interface{}))

func WithRetry

func WithRetry(handler func(), retries int, panicHandlers ...func(panicError interface{}))

Types

This section is empty.

Jump to

Keyboard shortcuts

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