Documentation ¶
Overview ¶
Package server implements a web application for serving Protomaps tiles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFlagSet ¶
DefaultFlagSet returns a `flag.FlagSet` instance configured with the default flags necessary for the server application.
func RunWithFlagSet ¶
RunWithFlagSet runs the server application using flags derived from 'fs'.
func RunWithOptions ¶ added in v1.2.0
func RunWithOptions(ctx context.Context, opts *RunOptions) error
Types ¶
type RunOptions ¶ added in v1.2.0
type RunOptions struct { ServerURI string Logger *log.Logger EnableCORS bool CORSOrigins []string CORSAllowCredentials bool CORSDebug bool EnableExample bool ExampleDatabase string ExampleLatitude float64 ExampleLongitude float64 ExampleZoom int PMTilesURI string PMTilesFS fs.FS PMTilesPrefix string PMTilesCacheSize int PMTilesHostname string PMTilesStripPrefix string }
func RunOptionsWithFlagSet ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.