Documentation
¶
Index ¶
- func AppendAssetHandlers(mux *gohttp.ServeMux) error
- func AppendAssetHandlersWithPrefix(mux *gohttp.ServeMux, prefix string) error
- func AppendResourcesHandler(next gohttp.Handler, opts *MapsOptions) gohttp.Handler
- func AppendResourcesHandlerWithPrefix(next gohttp.Handler, opts *MapsOptions, prefix string) gohttp.Handler
- func AppendResourcesHandlerWithPrefixAndProvider(next gohttp.Handler, map_provider provider.Provider, maps_opts *MapsOptions, ...) gohttp.Handler
- func AssetsHandler() (gohttp.Handler, error)
- func AssetsHandlerWithPrefix(prefix string) (gohttp.Handler, error)
- type MapsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendAssetHandlers ¶
Append all the files in the net/http FS instance containing the embedded Maps assets to an *http.ServeMux instance.
func AppendAssetHandlersWithPrefix ¶
Append all the files in the net/http FS instance containing the embedded Maps assets to an *http.ServeMux instance ensuring that all URLs are prepended with prefix.
func AppendResourcesHandler ¶
func AppendResourcesHandler(next gohttp.Handler, opts *MapsOptions) gohttp.Handler
AppendResourcesHandler will rewrite any HTML produced by previous handler to include the necessary markup to load Maps JavaScript and CSS files and related assets.
func AppendResourcesHandlerWithPrefix ¶
func AppendResourcesHandlerWithPrefix(next gohttp.Handler, opts *MapsOptions, prefix string) gohttp.Handler
AppendResourcesHandlerWithPrefix will rewrite any HTML produced by previous handler to include the necessary markup to load Maps JavaScript files and related assets ensuring that all URIs are prepended with a prefix.
func AppendResourcesHandlerWithPrefixAndProvider ¶ added in v0.0.7
func AssetsHandler ¶
AssetsHandler returns a net/http FS instance containing the embedded Maps assets that are included with this package.
Types ¶
type MapsOptions ¶
MapsOptions provides a list of JavaScript and CSS link to include with HTML output.
func DefaultMapsOptions ¶
func DefaultMapsOptions() *MapsOptions
Return a *MapsOptions struct with default paths and URIs.