api

package
v0.0.0-...-7cb6622 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(url string) *gin.Engine

API init router and pg pool

Types

type TileJSON

type TileJSON struct {
	Minzoom int      `json:"minzoom"`
	Maxzoom int      `json:"maxzoom"`
	Name    string   `json:"name"`
	Tiles   []string `json:"tiles"`
}

TileJSON represent tilejson only include min/max zoom ,url,name.

func NewTileJSON

func NewTileJSON(name, url string) TileJSON

NewTileJSON create a new tilejson.

type TilesContext

type TilesContext struct {
	TableName, GeomColName, Cols, Filter string
	mercantile.Tile
}

TilesContext represent parameters in tile request.

func NewTilesCtx

func NewTilesCtx(tableName, geom, cols, filters string, tile mercantile.Tile) *TilesContext

NewTilesCtx create a new context for tile request.

Jump to

Keyboard shortcuts

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