RecoverConfig defines the config for Recover middleware.
| 13 | |
| 14 | // RecoverConfig defines the config for Recover middleware. |
| 15 | type RecoverConfig struct { |
| 16 | // Skipper defines a function to skip middleware. |
| 17 | Skipper Skipper |
| 18 | |
| 19 | // Size of the stack to be printed. |
| 20 | // Optional. Default value 4KB. |
| 21 | StackSize int |
| 22 | |
| 23 | // DisableStackAll disables formatting stack traces of all other goroutines |
| 24 | // into buffer after the trace for the current goroutine. |
| 25 | // Optional. Default value false. |
| 26 | DisableStackAll bool |
| 27 | |
| 28 | // DisablePrintStack disables printing stack trace. |
| 29 | // Optional. Default value as false. |
| 30 | DisablePrintStack bool |
| 31 | } |
| 32 | |
| 33 | // DefaultRecoverConfig is the default Recover middleware config. |
| 34 | var DefaultRecoverConfig = RecoverConfig{ |
nothing calls this directly
no outgoing calls
no test coverage detected