server

package
v0.0.0-...-3a2841b Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	database DB,
	codeGenerator func() (string, error),
	baseURL string,
	httpClient *http.Client,
	conf config.Config,
	useTrue bool,
	webPath string,
	templates map[string]*template.Template,
	cookies *sessions.CookieStore,
	tokenGenerator func(int) (string, error),
	noRedirectClient *http.Client,
) http.Handler

Types

type Templates

type Templates interface {
	ExecuteTemplate(w io.Writer, tmpl string, data interface{}) error
}

Jump to

Keyboard shortcuts

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