Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonResponse ¶
JsonResponse sets the response content-type header to application/json; charset=utf-8
func RequestIDHandler ¶
RequestIDHandler sets unique request id. If header `X-Request-ID` is already present in the request, that is considered the request id. Otherwise, generates a new unique ID.
func RequestLogWrapper ¶
RequestLogWrapper adds a zerolog.Loggger to the request context, set http specific log fields and at the end of the request logs the request details and its duration in ms
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.