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 ¶
- func DumpStacktrace(skip int, attach interface{}) string
- func GoWithRecover(handler func(), panicHandlers ...func(panicError interface{}))
- func GoWithRetry(handler func(), retries int, panicHandlers ...func(panicError interface{}))
- func GoWithWaitGroup(wg *sync.WaitGroup, handler func(), ...)
- func HandleCrash(additionalHandlers ...func(panicError interface{}))
- func RegisterGlobalHandler(handler func(interface{}))
- func WithRecover(handler func(), panicHandlers ...func(panicError interface{}))
- func WithRetry(handler func(), retries int, panicHandlers ...func(panicError interface{}))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpStacktrace ¶
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 HandleCrash ¶
func HandleCrash(additionalHandlers ...func(panicError interface{}))
func RegisterGlobalHandler ¶
func RegisterGlobalHandler(handler func(interface{}))
func WithRecover ¶
func WithRecover(handler func(), panicHandlers ...func(panicError interface{}))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.