handlers

package
v0.0.0-...-e212fb1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseHandlerAndPath

func BaseHandlerAndPath(c *cli.Context) (string, http.Handler)

Types

type AssetHandler

type AssetHandler struct {
	File string
}

func (*AssetHandler) ServeHTTP

func (a *AssetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RootHandler

type RootHandler struct {
	PreRegexp      *regexp.Regexp
	Folder, SubURL string
}

func NewRootHandler

func NewRootHandler(url, f string) *RootHandler

func (*RootHandler) ServeHTTP

func (rh *RootHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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