handler

package
v0.0.0-...-35cacce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoSurf

type NoSurf struct {
	Cfg *akademy.Config
}

func (NoSurf) NoSurfMW

func (n NoSurf) NoSurfMW(next http.Handler) http.Handler

type PageHandler

type PageHandler interface {
	// Renders pages
	ShowIndexPage(w http.ResponseWriter, r *http.Request)
	ShowAboutPage(w http.ResponseWriter, r *http.Request)
	ShowLoginPage(w http.ResponseWriter, r *http.Request)

	// Handles requests from the browser
	HandleLogin(w http.ResponseWriter, r *http.Request)
}

func NewPageHandler

func NewPageHandler(v wys.ViewManager, sess *scs.SessionManager, svc interface{}) PageHandler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL