BindServerProperties create and bind a ServerProperties using default prefix.
No description provided by the author
No description provided by the author
ContextPath returns the "server.context-path" from properties with leading "/".
No description provided by the author
DefaultErrorHandling implement error handling logics at last resort, in case errors are not properly handled downstream.
No description provided by the author
No description provided by the author
No description provided by the author
GinBindingRequestDecoder is a DecodeRequestFunc utilizing gin.Context's binding capabilities.
GinContext returns *gin.Context which either contained in the context or is the given context itself.
GinContextMerger is a Gin middleware that merge Request.Context() with gin.Context, allowing values in gin.Context also available via Request.Context().Value().
HttpRequest returns *http.Request associated with given context.
No description provided by the author
No description provided by the author
No description provided by the author
MustGinContext returns *gin.Context like GinContext but panic if not found.
MustHttpRequest returns *http.Request associated with given context, panic if not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewHttpGinHandlerFunc integrate http.HandlerFunc with GIN handler.
No description provided by the author
No description provided by the author
No description provided by the author
NewMiddlewareGinMapping create a MiddlewareGinMapping with gin.HandlerFunc It's recommended to use middleware.MappingBuilder instead of this function: e.g.
NewMiddlewareMapping create a MiddlewareMapping with http.HandlerFunc It's recommended to use middleware.MappingBuilder instead of this function: e.g.
NewMvcMapping create a MvcMapping It's recommended to use rest.MappingBuilder or template.MappingBuilder instead of this function: e.g.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewServerProperties create a ServerProperties with default values.
NewSimpleGinLogFormatter is a convenient function that returns a simple gin.LogFormatter without request filtering Normally, LoggingCustomizer configures more complicated gin logging schema automatically.
NewSimpleGinMapping create a SimpleGinMapping.
NewSimpleMapping create a SimpleMapping.
NormalizedPath removes path parameter name from path.
OrderedFS returns a fs.FS that also implements order.Ordered if the given fs.FS is already implement the order.Ordered, "defaultOrder" is ignored.
PropertiesAware is a Gin middleware mandatory for all mappings.
SetKV set a kv pair to given context if: - The context is a utils.MutableContext - The context has utils.MutableContext as parent/ancestors - The context contains *gin.Context The value then can be obtained via context.Context.Value(key)
This function uses utils.FindMutableContext and GinContext() to find KV storage.
No description provided by the author
No description provided by the author
Validator returns the global validator for binding.