Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var NotAuthorized = "API not authorized for user %q"
NotAuthorized is a template string used to report an unauthorized access to the API
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)
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