Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
Middleware struct is extended by every middleware.
func (Middleware) Auth ¶
func (Middleware) Auth(next http.Handler) http.Handler
Auth checks if the JWT used by the request is valid. This middleware must be used only with JWT authentication and will not work with the basic auth.
func (Middleware) BasicAuth ¶
func (Middleware) BasicAuth(next http.Handler) http.Handler
BasicAuth used to check if the basic auth session is present. Use this middleware to protect resources with the basic authentication.
func (Middleware) Logging ¶
func (Middleware) Logging(next http.Handler) http.Handler
Logging log every actions printing used route
func (Middleware) RateLimiter ¶
func (Middleware) RateLimiter(next http.Handler) http.Handler
RateLimiter set a limit of request allowed in a specific time
func (Middleware) RefreshToken ¶
func (Middleware) RefreshToken(next http.Handler) http.Handler
RefreshToken return a new token in request response
Click to show internal directories.
Click to hide internal directories.