middleware

package
v0.0.0-...-36e04e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthUser

func AuthUser(s model.TokenService) gin.HandlerFunc

AuthUser extracts a user from the Authorization header which is of the form "Bearer token" It sets the user to the context if the user exists

func Timeout

func Timeout(timeout time.Duration, errTimeout *apperrors.Error) gin.HandlerFunc

Timeout middleware to set time out stop for api

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL