handler

package
v0.0.0-...-403b7d6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package handler defines handlers for static web content that conform to the http.Handler and the httprouter.Handle interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(env *Environment) httprouter.Handle

func Home

func Home(env *Environment) httprouter.Handle
func Legal(env *Environment) httprouter.Handle

func Login

func Login(env *Environment) httprouter.Handle

func Ping

func Privacy

func Privacy(env *Environment) httprouter.Handle

func Terms

func Terms(env *Environment) httprouter.Handle

Types

type Environment

type Environment struct {
	Log     app.Logger
	DB      app.DB
	Msg     app.Notifier
	L10n    app.Translator
	Session *scs.SessionManager
}

Environment is a collection of interfaces that http handlers can use to access various parts of the app.

Jump to

Keyboard shortcuts

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