handlers

package
v0.0.0-...-c448963 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Error404FilePath   string
	HeaderMap          map[string][]string
	GzipEnabled        bool
	HeaderMapEnabled   bool
	TemplateMap        map[string]string
	RewriteDomains     map[string]string
	TemplateMapEnabled bool
	VueJSHistoryMode   bool
	ServeFolder        string
}

Handler holds the information needed to create handlers

func (*Handler) RewriteToDomain

func (h *Handler) RewriteToDomain(next http.Handler) http.Handler

func (*Handler) ServeHandler

func (h *Handler) ServeHandler() (handler http.Handler)

ServeHandler ... serves a folder

func (*Handler) ServeStandardRedirect

func (h *Handler) ServeStandardRedirect(from string, to string) http.HandlerFunc

ServeStandardRedirect ... handles a standard path redirect

Jump to

Keyboard shortcuts

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