package
0.0.0-20180325151459-ed3cc772bb2f
Repository: https://github.com/adirelle/go-libs.git
Documentation: pkg.go.dev
# Functions
AddURLGenerator is a middleware that adds an URLGenerator in the Request Context.
DebugRequest logs request start, status to its associated logger, if any.
NewURLSpec is a helper to easily build an URLSPEC.
UniqueID adds a unique ID to the Request Context, ResponseWriter and any associated Logger.
UniqueIDFromContext retrieves the uniqueID from the Context.
URLGeneratorFromContext extracts the URLGenerator from the context.
# Structs
No description provided by the author
RouterURLGenerator implements URLGenerator using a mux.Router.
No description provided by the author
URLSpec specifies how to build an URL with a route name and its parameters.
# Interfaces
URLGenerator generates a fully-fledged URL from the URLSpec.