Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogMiddleware ¶
LogMiddleware is an middleware to log requests to phuslu/log and catches panics. If it is added multiple times, only the first time sends entries to the log.
func RequireUser ¶
RequireUser is an middleware that looks if the user is an Anonymous user and redircts it to the login if so.
Types ¶
Click to show internal directories.
Click to hide internal directories.