Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationHandler ¶
type EnsureAuthenticated ¶
type EnsureAuthenticated struct {
Handler AuthenticationHandler
// contains filtered or unexported fields
}
func NewEnsureAuth ¶
func NewEnsureAuth(handlerToWrap AuthenticationHandler, db *db.Queries) *EnsureAuthenticated
func (*EnsureAuthenticated) ServeHTTP ¶
func (ea *EnsureAuthenticated) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LoggerMiddleware ¶
func NewLoggerMiddleware ¶
func NewLoggerMiddleware(handlerToWrap http.Handler) *LoggerMiddleware
func (*LoggerMiddleware) ServeHTTP ¶
func (lm *LoggerMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.