package
0.0.0-20220615160721-a504e3df740a
Repository: https://github.com/healthimation/go-service.git
Documentation: pkg.go.dev
# Functions
GetDefaultLogger gets a default logger to use.
GetLoggerFromContext returns a logrus entry from the context, defaulting to a standard one if its not found.
HandlerFunc converts a handler with an error to a standard handler.
NewLogrusLogger allows you to setup a base entry to use for logging.
No description provided by the author
NoCache will add the following headers to the response: Cache-Control: no-cache, no-store, must-revalidate Pragma: no-cache Expires: 0.
Recovery handles panics.
RequestID adds a request id to the context, if available it will use the one in the x-request-id header.
UserIDInjector add the user id to the context this is not validated for perf reasons.