Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotAuthorized = "API not authorized for user %q"
NotAuthorized is a template string used to report an unauthorized access to the API
View Source
var NotValidID = "ID %q is not valid"
NotValidID is a template string used to report that the id is not valid (i.e. not a valid BSON ID)
View Source
var UserNotFound = "Cannot find user %s"
UserNotFound is a template string used to report that the user cannot be found
Functions ¶
func RetrieveUser ¶
func RetrieveUser(next echo.HandlerFunc) echo.HandlerFunc
RetrieveUser is a middleware setting the user in context
Types ¶
Click to show internal directories.
Click to hide internal directories.