Documentation ¶
Index ¶
- func DeferredGracefulPanicRecovery(c *gin.Context)
- func Logger(prefix ...string) gin.HandlerFunc
- func Must(fn func(*gin.Context) error) gin.HandlerFunc
- func Recovery() gin.HandlerFunc
- func ResponseWriteError(c *gin.Context, _err interface{})
- func WriteLogEntry(c *gin.Context, prefix string, d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
func Logger(prefix ...string) gin.HandlerFunc
Logger creates a gin.HandlerFunc that uses go's standard log package. Use log.SetOutput to modify logging output destination. Prefix is assembled by strings.Join(prefix, " ").
func Recovery ¶
func Recovery() gin.HandlerFunc
func ResponseWriteError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.