Documentation
¶
Overview ¶
Package fibercommon provides common fiber related utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextLoggerMiddleware ¶
ContextLoggerMiddleware adds the http metadata to the logger and adds the logger to the context.
func ErrorHandler ¶
ErrorHandler is a custom handler to log recovered errors using our logger and return json instead of string. This handler is aware of the richerrors package and will use the code and message from the error if available. It will also log the error to the set in the user context logger.
Types ¶
type CodedResponse ¶
CodedResponse is a response that includes a code and a message.
Click to show internal directories.
Click to hide internal directories.