http

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendStaticAssetHandlers

func AppendStaticAssetHandlers(mux *gohttp.ServeMux) error

func AppendStaticAssetHandlersWithPrefix

func AppendStaticAssetHandlersWithPrefix(mux *gohttp.ServeMux, prefix string) error

func MapHandler

func MapHandler(opts *MapHandlerOptions) (gohttp.Handler, error)

func StaticAssetsHandler

func StaticAssetsHandler() (gohttp.Handler, error)

func StaticAssetsHandlerWithPrefix

func StaticAssetsHandlerWithPrefix(prefix string) (gohttp.Handler, error)

func StaticFileSystem

func StaticFileSystem() (gohttp.FileSystem, error)

Types

type MapHandlerOptions

type MapHandlerOptions struct {
	Templates        *template.Template
	InitialLatitude  float64
	InitialLongitude float64
	InitialZoom      int
	MapProvider      provider.Provider
}

type MapHandlerVars

type MapHandlerVars struct {
	InitialLatitude  float64
	InitialLongitude float64
	InitialZoom      int
	MapProvider      string
}

Jump to

Keyboard shortcuts

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