package
0.17.0
Repository: https://github.com/mikestefanello/pagoda.git
Documentation: pkg.go.dev

# Functions

CacheControl sets a Cache-Control header with a given max age.
LoadAuthenticatedUser loads the authenticated user, if one, and stores in context.
LoadUser loads the user based on the ID provided as a path parameter.
LoadValidPasswordToken loads a valid password token entity that matches the user and token provided in path parameters If the token is invalid, the user will be redirected to the forgot password route This requires that the user owning the token is loaded in to context.
LogRequest logs the current request Echo provides middleware similar to this, but we want to use our own logger.
RequireAuthentication requires that the user be authenticated in order to proceed.
RequireNoAuthentication requires that the user not be authenticated in order to proceed.
ServeCachedPage attempts to load a page from the cache by matching on the complete request URL If a page is cached for the requested URL, it will be served here and the request terminated.
Session sets the session storage in the request context.
SetLogger initializes a logger for the current request and stores it in the context.