//
pkg.gl
Category
github.com/vithubati/go-core
http
middleware
package
0.0.0-20231226231630-6c9b677bae35
Repository:
https://github.com/vithubati/go-core.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
5
Dependents
1
Files
35 SLOC
#
Functions
GetReqID
GetReqID returns a request ID from the given context if one is present.
RequestID
RequestID is a middleware that injects a request ID into the context of each It is using https://github.com/google/uuid to generate UUID v4 in case of error its generating using the time.Now.
#
Constants
RequestIDKey
RequestIDKey is the key that holds the unique request ID in a request context.