package
0.0.2
Repository: https://github.com/wangtaoking1/app-base.git
Documentation: pkg.go.dev

# Functions

Cors is a middleware that adds cors headers.
Get returns the specific name middleware.
GetRequestIDFromContext returns 'RequestID' from the given context if present.
GetRequestIDFromHeaders returns 'RequestID' from the headers if present.
Register register a middleware.
RequestID is a middleware that injects a 'X-Request-ID' into the context and request/response header of each request.

# Constants

XRequestIDKey defines X-Request-ID key string.