MCPcopy Index your code
hub / github.com/labstack/echo / RecoverConfig

Struct RecoverConfig

middleware/recover.go:15–31  ·  view source on GitHub ↗

RecoverConfig defines the config for Recover middleware.

Source from the content-addressed store, hash-verified

13
14// RecoverConfig defines the config for Recover middleware.
15type 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.
34var DefaultRecoverConfig = RecoverConfig{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected