package
0.0.0-20241001120344-791233ab31d1
Repository: https://github.com/wearemojo/mojo-public-go.git
Documentation: pkg.go.dev
# Functions
ClientIP respects the infra-client-ip header containing the clients real IP address.
GetClientVersion retrieves the parsed version from a request.
GetClientVersionContext retrieves the parsed version from a request context.
No description provided by the author
Logger returns a middleware handler that wraps subsequent middleware/handlers and logs request information AFTER the request has completed.
ParseClientVersion attempts to parse the infra-client-version HTTP header and add it as a struct to the context.
StripPrefix is HTTP Middleware that will strip a prefix from a URL before hitting an endpoint.
# Constants
ClientIPHeader is the customer header, set by our network edge, that is expected to be the clients real IP address when X-Forwarded-For cannot be trusted.
No description provided by the author
No description provided by the author
# Structs
ClientVersion represents a parsed client version header string.