handlers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeospatialData

func GeospatialData(ac *config.APIConfig) echo.HandlerFunc

GeospatialData godoc @Summary Extract geospatial data @Description Extract geospatial data from a RAS model given an s3 key @Tags MCAT @Accept json @Produce json @Param definition_file query string true "/models/ras/CHURCH HOUSE GULLY/CHURCH HOUSE GULLY.prj" @Success 200 {object} interface{} @Failure 500 {object} SimpleResponse @Router /geospatialdata [get]

func Index

func Index(fs *filestore.FileStore) echo.HandlerFunc

Index godoc @Summary Index a RAS model @Description Extract metadata from a RAS model given an s3 key @Tags MCAT @Accept json @Produce json @Param definition_file query string true "/models/ras/CHURCH HOUSE GULLY/CHURCH HOUSE GULLY.prj" @Success 200 {object} ras.Model @Failure 500 {object} SimpleResponse @Router /index [get]

func IsAModel

func IsAModel(fs *filestore.FileStore) echo.HandlerFunc

IsAModel godoc @Summary Check if the given key is a RAS model @Description Check if the given key is a RAS model @Tags MCAT @Accept json @Produce json @Param definition_file query string true "/models/ras/CHURCH HOUSE GULLY/CHURCH HOUSE GULLY.prj" @Success 200 {object} bool @Router /isamodel [get]

func IsGeospatial

func IsGeospatial(fs *filestore.FileStore) echo.HandlerFunc

IsGeospatial godoc @Summary Check if the RAS model has geospatial information @Description Check if the RAS model has geospatial information @Tags MCAT @Accept json @Produce json @Param definition_file query string true "/models/ras/CHURCH HOUSE GULLY/CHURCH HOUSE GULLY.prj" @Success 200 {object} bool @Router /isgeospatial [get]

func ModelType

func ModelType(fs *filestore.FileStore) echo.HandlerFunc

ModelType godoc @Summary Extract the model type @Description Extract the model type given an s3 key @Tags MCAT @Accept json @Produce json @Param definition_file query string true "/models/ras/CHURCH HOUSE GULLY/CHURCH HOUSE GULLY.prj" @Success 200 {string} string "RAS" @Failure 500 {object} SimpleResponse @Router /modeltype [get]

func ModelVersion

func ModelVersion(fs *filestore.FileStore) echo.HandlerFunc

ModelVersion godoc @Summary Extract the RAS model version @Description Extract the RAS model version given an s3 key @Tags MCAT @Accept json @Produce json @Param definition_file query string true "/models/ras/CHURCH HOUSE GULLY/CHURCH HOUSE GULLY.prj" @Success 200 {string} string "4.0" @Failure 500 {object} SimpleResponse @Router /modelversion [get]

func Ping

func Ping(fs *filestore.FileStore) echo.HandlerFunc

Ping godoc @Summary Status Check @Description Check which services are operational @Tags Health Check @Accept json @Produce json @Success 200 {object} SimpleResponse @Router /ping [get]

Types

type SimpleResponse

type SimpleResponse struct {
	Status  int
	Message string
}

Jump to

Keyboard shortcuts

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