api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2017 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleElevation

func HandleElevation(w http.ResponseWriter, r *http.Request)

func HandleElevationPath

func HandleElevationPath(w http.ResponseWriter, r *http.Request)

func HandleTiles

func HandleTiles(w http.ResponseWriter, r *http.Request)

HandleTiles handles the '/tiles' endpoint which returns the list of available SRTM tiles to the caller

func InitElevation

func InitElevation(cfg ini.File) (err error)

Types

type Error

type Error struct {
	Name        string      `json:"error_name"`
	Description string      `json:"description"`
	Data        interface{} `json:"data"`
}

Error represents an API error. This struct is created and then converted to JSON before being sent to the client

Jump to

Keyboard shortcuts

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