server

package
v0.0.0-...-fa777c1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0, BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server exposes indexes services

func New

func New(appName, tilesKey string, afs fs.FS, storage storage.TileStore,
	logger log.Logger, healthServer *health.Server,
) (*Server, error)

New returns a Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP serves the mbtiles for URL such as /tiles/11/618/722.pbf

func (*Server) StaticHandler

func (s *Server) StaticHandler(w http.ResponseWriter, req *http.Request)

StaticHandler serves templates and other static files

func (*Server) TilesHandler

func (s *Server) TilesHandler(w http.ResponseWriter, req *http.Request)

TilesHandler serves the mbtiles at /tiles/11/618/722.pbf

Jump to

Keyboard shortcuts

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