handler

package
v0.0.0-...-efb891d Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoSurf

func NoSurf(next http.Handler) http.Handler

func WriteToConsole

func WriteToConsole(next http.Handler) http.Handler

Types

type PageHandler

type PageHandler interface {
	ShowHome(w http.ResponseWriter, r *http.Request)
}

func NewPageHandler

func NewPageHandler(sess *scs.SessionManager, svc service.UserService) PageHandler

type TemplateData

type TemplateData struct {
	CSRFToken       string
	StringSlice     []string
	StringMap       map[string]string
	IntMap          map[string]int
	FloatMap        map[string]float32
	Data            map[string]interface{}
	Flash           string
	Warning         string
	Error           string
	Form            *forms.Form
	IsAuthenticated int
	Title           string
	InfoMsg         string
	WarnMsg         string
	ErrMsg          string
}

func AddDefaultData

func AddDefaultData(r *http.Request, td *TemplateData) *TemplateData

Jump to

Keyboard shortcuts

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