Documentation
¶
Index ¶
- Variables
- func AppendAssetHandlers(mux *http.ServeMux) error
- func AppendAssetHandlersWithPrefix(mux *http.ServeMux, prefix string) error
- func AppendResourcesHandler(next http.Handler, opts *ProtomapsOptions) http.Handler
- func AppendResourcesHandlerWithPrefix(next http.Handler, opts *ProtomapsOptions, prefix string) http.Handler
- func AssetsHandler() (http.Handler, error)
- func AssetsHandlerWithPrefix(prefix string) (http.Handler, error)
- func FileHandlerFromPath(path string, prefix string) (string, http.Handler, error)
- type ProtomapsOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var INCLUDE_LEAFLET = true
Functions ¶
func AppendAssetHandlers ¶
func AppendResourcesHandler ¶
func AppendResourcesHandler(next http.Handler, opts *ProtomapsOptions) http.Handler
func AssetsHandler ¶
func FileHandlerFromPath ¶ added in v0.0.3
FileHandlerFromPath will take a path and create a http.FileServer handler instance for the files in its root directory. The handler is returned with a relative URI for the filename in 'path' to be assigned to a net/http ServeMux instance.
Types ¶
type ProtomapsOptions ¶
func DefaultProtomapsOptions ¶
func DefaultProtomapsOptions() *ProtomapsOptions
Click to show internal directories.
Click to hide internal directories.
