package
0.5.0
Repository: https://github.com/tsingsun/woocoo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AbortWithError gin context's AbortWithError prevent to reset response header, so we need to replace it.
AccessLog is the access logger middleware apply function.
CORS Cross-Origin Resource Sharing (CORS) support.
CreateExtractors creates a list of extractors based on the given list of extractor names.
DefaultSkipper returns false which processes the middleware.
DerivativeContextWithValue try to set a ctx to the derivative context slot in gin.Context, if no existing set to request.Context and return false.
ErrorHandle is the error handle middleware apply function.
FormatResponseError converts a http error to gin.H.
GetDerivativeContext get the derivative context from gin.Context, return gin.Context if no existing.
No description provided by the author
No description provided by the author
JWT is the jwt middleware apply function.
KeyAuth is the keyauth middleware apply function.
NegotiateResponse calls different Render according to acceptably Accept format.
NewAccessLog a new LoggerMiddleware,it is for handler registry.
NewErrorHandle is the error handle middleware.
NewJWT constructs a new JWT struct with supplied options.
No description provided by the author
NewMiddlewareOption apply the options to MiddlewareOptions.
NewSimpleMiddleware returns a new SimpleMiddleware instance.
PathSkip returns a skipper function that skips middleware if the request path.
PathSkipper returns a Skipper function that skips processing middleware.
Recovery is the recovery middleware apply function.
SetContextError set the error to Context, and the error will be handled by ErrorHandleMiddleware.
SetDerivativeContext set the derivative context to gin.Context.
StringsToMap convert a string slice to a map.
ValuesFromCookie returns a function that extracts values from the named cookie.
ValuesFromForm returns a function that extracts values from the form field.
ValuesFromHeader returns functions that extract values from the request header.
ValuesFromParam returns a function that extracts values from the url param string.
ValuesFromQuery returns a function that extracts values from the query string.
WithMiddlewareConfig use to change the default middleware config.
WrapMiddlewareApplyFunc wraps a MiddlewareApplyFunc to MiddlewareNewFunc.

# Constants

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
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
JWTMiddleware provides a Json-Web-Token authentication implementation.
No description provided by the author
No description provided by the author
No description provided by the author
LoggerMiddleware is a middleware that logs each request.
MiddlewareOptions middleware options for middleware to implement advanced features.if middleware config initial from Configuration, you don't need to use this.
RecoveryMiddleware is a middleware that recovers from panics anywhere in the chain and handles the control to the centralized HTTPErrorHandler.
SimpleMiddleware is a convenience to build middleware by name and gin.HandlerFunc.

# Interfaces

Middleware is an instance to build middleware for web application.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
MiddlewareApplyFunc defines a function to initial new middleware by a configuration.
MiddlewareInitConfigFunc is the function that gets the middleware config and mutate.
MiddlewareNewFunc defines a function to initial new middleware.
No description provided by the author
Skipper defines a function to skip middleware.
ValuesExtractor defines a function for extracting values (keys/tokens) from the given context.