http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

package http provides HTTP handlers for serving tile requests for one or more MBTiles databases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MBTilesHandler

func MBTilesHandler(catalog map[string]tilepack.MbtilesReader) (gohttp.HandlerFunc, error)

MBTilesHandler will return a http.HandlerFunc handler for serving tile requests from 'catalog' using the tile.NewSimpleTileParser parser.

func MBTilesHandlerWithParser

func MBTilesHandlerWithParser(catalog map[string]tilepack.MbtilesReader, p tile.TileParser) (gohttp.HandlerFunc, error)

MBTilesHandler will return a http.HandlerFunc handler for serving tile requests from 'catalog' using a custom tile.TileParser instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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