Documentation ¶
Overview ¶
package http provides net/http Handlers for web applications
Index ¶
- func AppendStaticAssetHandlers(mux *gohttp.ServeMux) error
- func AppendStaticAssetHandlersWithPrefix(mux *gohttp.ServeMux, prefix string) error
- func BboxHandler() (gohttp.Handler, error)
- func MARC034Handler(t *template.Template) (gohttp.Handler, error)
- func StaticAssetsHandler() (gohttp.Handler, error)
- func StaticAssetsHandlerWithPrefix(prefix string) (gohttp.Handler, error)
- func StaticFileSystem() (gohttp.FileSystem, error)
- type HTMLVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendStaticAssetHandlers ¶
AppendStaticAssetHandlers will append paths for all the files in `StaticAssetsHandler()` to mux.
func AppendStaticAssetHandlersWithPrefix ¶
AppendStaticAssetHandlersWithPrefix will append paths for all the files in `StaticAssetsHandlerWithPrefix()` to mux prepended with prefix.
func BboxHandler ¶
BboxHandler returns a `net/http.Handler` instance for convert MARC 034 fields in to GeoJSON Features.
func MARC034Handler ¶ added in v1.0.0
MARC034Handler returns a `net/http.Handler` instance for converting MARC 034 fields.
func StaticAssetsHandler ¶
StaticAssetsHandler returns a `net/http.Handle` instance for serving files in StaticFileSystem.
func StaticAssetsHandlerWithPrefix ¶
StaticAssetsHandlerWithPrefix returns a `net/http.Handle` instance for serving files in StaticFileSystem from prefix.
func StaticFileSystem ¶
func StaticFileSystem() (gohttp.FileSystem, error)
StaticFileSystem returns a `net/http.FileSystem` instance for the static asset filesystem in `go-marc/static`.