Versions in this module Expand all Collapse all v6 v6.0.4 Apr 8, 2024 v6.0.3 Dec 19, 2023 v6.0.2 Nov 6, 2023 v6.0.1 Nov 6, 2023 v6.0.0 Jan 12, 2023 Changes in this version + func AppendStaticAssetHandlers(mux *http.ServeMux) error + func AppendStaticAssetHandlersWithPrefix(mux *http.ServeMux, prefix string) error + func DataHandler(root string) (http.Handler, error) + func DefaultRasterSizes() map[string]RasterSize + func DefaultSVGSizes() map[string]SVGSize + func GeoJSONHandler(opts *GeoJSONHandlerOptions) (http.Handler, error) + func GeoJSONLDHandler(opts *GeoJSONLDHandlerOptions) (http.Handler, error) + func IDHandler(opts IDHandlerOptions) (http.Handler, error) + func IndexHandler(opts IndexHandlerOptions) (http.Handler, error) + func NavPlaceHandler(opts *NavPlaceHandlerOptions) (http.Handler, error) + func NewNullHandler() http.Handler + func RasterHandler(opts *RasterHandlerOptions) (http.Handler, error) + func RenderTemplate(rsp gohttp.ResponseWriter, t *template.Template, vars interface{}) + func SPRHandler(opts *SPRHandlerOptions) (http.Handler, error) + func SVGHandler(opts *SVGHandlerOptions) (http.Handler, error) + func SearchAPIHandler(opts SearchAPIHandlerOptions) (http.Handler, error) + func SearchHandler(opts SearchHandlerOptions) (http.Handler, error) + func SelectHandler(opts *SelectHandlerOptions) (http.Handler, error) + func StaticAssetsHandler() (http.Handler, error) + func StaticAssetsHandlerWithPrefix(prefix string) (http.Handler, error) + func StaticFileSystem() (http.FileSystem, error) + func WebfingerHandler(opts *WebfingerHandlerOptions) (http.Handler, error) + type Capabilities struct + GeoJSON bool + GeoJSONLD bool + HTML bool + NavPlace bool + PNG bool + SPR bool + SVG bool + Select bool + type Endpoints struct + Data string + GeoJSONLD string + Id string + Index string + NavPlace string + Png string + Search string + Spr string + Svg string + type ErrorVars struct + Endpoints *Endpoints + Error error + type GeoJSONHandlerOptions struct + Logger *log.Logger + Reader reader.Reader + type GeoJSONLDHandlerOptions struct + Logger *log.Logger + Reader reader.Reader + type IDHandlerOptions struct + Endpoints *Endpoints + Logger *log.Logger + MapProvider string + Reader reader.Reader + Templates *template.Template + type IDVars struct + Endpoints *Endpoints + IsAlternate bool + LastModified string + MapProvider string + SPR spr.StandardPlacesResult + URI string + URIArgs *uri.URIArgs + type IndexHandlerOptions struct + Endpoints *Endpoints + Templates *template.Template + type IndexVars struct + Endpoints *Endpoints + type NavPlaceHandlerOptions struct + Logger *log.Logger + MaxFeatures int + Reader reader.Reader + type NotFoundVars struct + Endpoints *Endpoints + type Paths struct + GeoJSON string + GeoJSONLD string + HTML string + NavPlace string + PNG string + SPR string + SVG string + Select string + URIPrefix string + type RasterHandlerOptions struct + Format string + Logger *log.Logger + Reader reader.Reader + Sizes map[string]RasterSize + type RasterSize struct + Label string + MaxHeight int + MaxWidth int + type SPRHandlerOptions struct + Logger *log.Logger + Reader reader.Reader + type SVGHandlerOptions struct + Logger *log.Logger + Reader reader.Reader + Sizes map[string]SVGSize + type SVGSize struct + Label string + MaxHeight int + MaxWidth int + type SearchAPIHandlerOptions struct + Database fulltext.FullTextDatabase + EnableGeoJSON bool + GeoJSONReader reader.Reader + SPRPathResolver geojson.SPRPathResolver + type SearchHandlerOptions struct + Database fulltext.FullTextDatabase + Endpoints *Endpoints + MapProvider string + Templates *template.Template + type SearchVars struct + Endpoints *Endpoints + Query string + Results []spr.StandardPlacesResult + type SelectHandlerOptions struct + Logger *log.Logger + Pattern *regexp.Regexp + Reader reader.Reader + type WebfingerHandlerOptions struct + Capabilities *Capabilities + Hostname string + Logger *log.Logger + Paths *Paths + Reader reader.Reader Other modules containing this package github.com/whosonfirst/go-whosonfirst-browser/v5 github.com/whosonfirst/go-whosonfirst-browser/v7