http

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

package http provides net/http Handlers for web applications

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendStaticAssetHandlers

func AppendStaticAssetHandlers(mux *gohttp.ServeMux) error

AppendStaticAssetHandlers will append paths for all the files in `StaticAssetsHandler()` to mux.

func AppendStaticAssetHandlersWithPrefix

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

AppendStaticAssetHandlersWithPrefix will append paths for all the files in `StaticAssetsHandlerWithPrefix()` to mux prepended with prefix.

func BboxHandler

func BboxHandler() (gohttp.Handler, error)

BboxHandler returns a `net/http.Handler` instance for convert MARC 034 fields in to GeoJSON Features.

func MARC034Handler added in v1.0.0

func MARC034Handler(t *template.Template) (gohttp.Handler, error)

MARC034Handler returns a `net/http.Handler` instance for converting MARC 034 fields.

func StaticAssetsHandler

func StaticAssetsHandler() (gohttp.Handler, error)

StaticAssetsHandler returns a `net/http.Handle` instance for serving files in StaticFileSystem.

func StaticAssetsHandlerWithPrefix

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

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`.

Types

type HTMLVars

type HTMLVars struct {
}

Jump to

Keyboard shortcuts

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