Documentation ¶
Index ¶
- func AppendStaticAssetHandlers(mux *http.ServeMux) error
- func AppendStaticAssetHandlersWithPrefix(mux *http.ServeMux, prefix string) error
- func DataHandler(root string) (http.Handler, error)
- func GeoJSONHandler(r reader.Reader) (http.Handler, error)
- func GeoJSONLDHandler(r reader.Reader) (http.Handler, error)
- func IDHandler(r reader.Reader, opts IDHandlerOptions) (http.Handler, error)
- func IndexHandler(opts IndexHandlerOptions) (http.Handler, error)
- func NavPlaceHandler(r reader.Reader) (http.Handler, error)
- func RasterHandler(r reader.Reader, opts *RasterOptions) (http.Handler, error)
- func RenderTemplate(rsp gohttp.ResponseWriter, t *template.Template, vars interface{})
- func SPRHandler(r reader.Reader) (http.Handler, error)
- func SVGHandler(r reader.Reader, handler_opts *SVGOptions) (http.Handler, error)
- func SearchAPIHandler(opts SearchAPIHandlerOptions) (http.Handler, error)
- func SearchHandler(opts SearchHandlerOptions) (http.Handler, error)
- func SelectHandler(r reader.Reader, opts *SelectHandlerOptions) (http.Handler, error)
- func StaticAssetsHandler() (http.Handler, error)
- func StaticAssetsHandlerWithPrefix(prefix string) (http.Handler, error)
- func StaticFileSystem() (http.FileSystem, error)
- type Endpoints
- type ErrorVars
- type IDHandlerOptions
- type IDVars
- type IndexHandlerOptions
- type IndexVars
- type NotFoundVars
- type RasterOptions
- type RasterSize
- type SVGOptions
- type SVGSize
- type SearchAPIHandlerOptions
- type SearchHandlerOptions
- type SearchVars
- type SelectHandlerOptions
- type URI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeoJSONHandler ¶
func GeoJSONLDHandler ¶
func IndexHandler ¶
func IndexHandler(opts IndexHandlerOptions) (http.Handler, error)
func NavPlaceHandler ¶ added in v3.2.1
NavPlaceHandler will return a given record as a FeatureCollection for use by the IIIF navPlace extension, specifically as navPlace "reference" objects.
func RasterHandler ¶
func RasterHandler(r reader.Reader, opts *RasterOptions) (http.Handler, error)
func RenderTemplate ¶
func RenderTemplate(rsp gohttp.ResponseWriter, t *template.Template, vars interface{})
func SPRHandler ¶
func SVGHandler ¶
func SVGHandler(r reader.Reader, handler_opts *SVGOptions) (http.Handler, error)
func SearchAPIHandler ¶
func SearchAPIHandler(opts SearchAPIHandlerOptions) (http.Handler, error)
func SearchHandler ¶
func SearchHandler(opts SearchHandlerOptions) (http.Handler, error)
func SelectHandler ¶
func SelectHandler(r reader.Reader, opts *SelectHandlerOptions) (http.Handler, error)
func StaticAssetsHandler ¶
func StaticFileSystem ¶
func StaticFileSystem() (http.FileSystem, error)
Types ¶
type IDHandlerOptions ¶
type IndexHandlerOptions ¶
type NotFoundVars ¶
type NotFoundVars struct {
Endpoints *Endpoints
}
type RasterOptions ¶
type RasterOptions struct { Format string Sizes map[string]RasterSize }
func NewDefaultRasterOptions ¶
func NewDefaultRasterOptions() (*RasterOptions, error)
type RasterSize ¶
type SVGOptions ¶
func NewDefaultSVGOptions ¶
func NewDefaultSVGOptions() (*SVGOptions, error)
type SearchAPIHandlerOptions ¶
type SearchAPIHandlerOptions struct { Database fulltext.FullTextDatabase EnableGeoJSON bool GeoJSONReader reader.Reader SPRPathResolver geojson.SPRPathResolver }
type SearchHandlerOptions ¶
type SearchHandlerOptions struct { Templates *template.Template Endpoints *Endpoints Database fulltext.FullTextDatabase }
type SearchVars ¶
type SelectHandlerOptions ¶
Click to show internal directories.
Click to hide internal directories.