www

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendStaticAssetHandlers

func AppendStaticAssetHandlers(mux *gohttp.ServeMux) error

func AppendStaticAssetHandlersWithPrefix

func AppendStaticAssetHandlersWithPrefix(mux *gohttp.ServeMux, prefix string) error

func EditorHandler

func EditorHandler(opts *EditorHandlerOptions) (http.Handler, error)

func StaticAssetsHandler

func StaticAssetsHandler() (gohttp.Handler, error)

func StaticAssetsHandlerWithPrefix

func StaticAssetsHandlerWithPrefix(prefix string) (gohttp.Handler, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL