Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoEntity = errors.New("entity does not exist") ErrBadInput = errors.New("invalid input") )
Functions ¶
func SetInitAsFailed ¶
func SetInitAsFailed()
Types ¶
type Health ¶
type Health struct {
OK bool `json:"ok"`
}
Health represents the object of the health root endpoint
type Response ¶
type Response struct { Status string `json:"status"` Message string `json:"message"` StatusCode int `json:"code"` }
Response describes a status response
func NewResponse ¶
NewResponse creates a new status response based on parameters
type TileJSON ¶
type TileJSON struct { // TileJSON spec fields TileJSON string `json:"tilejson"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Version string `json:"version,omitempty"` Attribution string `json:"attribution,omitempty"` Template string `json:"template,omitempty"` Legend string `json:"legend,omitempty"` Scheme string `json:"scheme,omitempty"` Tiles []string `json:"tiles"` Grids []string `json:"grids,omitempty"` Data []string `json:"data,omitempty"` MinZoom int `json:"minzoom,omitempty"` MaxZoom int `json:"maxzoom,omitempty"` Bounds [4]float64 `json:"bounds,omitempty"` Center [3]float64 `json:"center,omitempty"` // Custom fields Format string `json:"format,omitempty"` Type string `json:"type,omitempty"` *mbtiles.LayerData `json:",omitempty"` }
TileJSON describes a tileset in JSON format
Click to show internal directories.
Click to hide internal directories.