Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthRequired ¶
func AuthRequired( getAuthToken authRequiredDependencyGetAuthToken, authTokenLifetime time.Duration, ) gin.HandlerFunc
AuthRequired checks if user is authorized
func ErrorWriter ¶
func ErrorWriter() gin.HandlerFunc
ErrorWriter writes last error into response body if not written yet
func LoggerWithLogger ¶
func LoggerWithLogger(out *log.Logger, notlogged ...string) gin.HandlerFunc
LoggerWithLogger instance a Logger middleware with a *log.Logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.