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
Click to show internal directories.
Click to hide internal directories.