Documentation
¶
Index ¶
- func AppendStaticAssetHandlers(mux *gohttp.ServeMux) error
- func AppendStaticAssetHandlersWithPrefix(mux *gohttp.ServeMux, prefix string) error
- func EditorHandler(opts *EditorHandlerOptions) (http.Handler, error)
- func StaticAssetsHandler() (gohttp.Handler, error)
- func StaticAssetsHandlerWithPrefix(prefix string) (gohttp.Handler, error)
- func StaticFileSystem() (gohttp.FileSystem, error)
- type EditorHandlerOptions
- type EditorHandlerVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditorHandler ¶
func EditorHandler(opts *EditorHandlerOptions) (http.Handler, error)
func StaticAssetsHandler ¶
func StaticFileSystem ¶
func StaticFileSystem() (gohttp.FileSystem, error)
Types ¶
type EditorHandlerOptions ¶
type EditorHandlerOptions struct {
Templates *template.Template
InitialLatitude float64
InitialLongitude float64
InitialZoom int
EnablePlaceholder bool
PlaceholderEndpoint string
EnableOEmbed bool
OEmbedEndpoints []string
EnableWriter bool
WriterPath string
MapRenderer string
EnablePointInPolygon bool
PointInPolygonEndpoint string
PointInPolygonDataEndpoint string
}
type EditorHandlerVars ¶
type EditorHandlerVars struct {
PageContext string
InitialLatitude float64
InitialLongitude float64
InitialZoom int
EnablePlaceholder bool
PlaceholderEndpoint string
EnableOEmbed bool
OEmbedEndpoints string
EnableWriter bool
WriterPath string
MapRenderer string
EnablePointInPolygon bool
PointInPolygonEndpoint string
PointInPolygonDataEndpoint string
}
Click to show internal directories.
Click to hide internal directories.