Documentation
¶
Index ¶
- func GeospatialData(ac *config.APIConfig) echo.HandlerFunc
- func Index(fs *filestore.FileStore) echo.HandlerFunc
- func IsAModel(fs *filestore.FileStore) echo.HandlerFunc
- func IsGeospatial(fs *filestore.FileStore) echo.HandlerFunc
- func ModelType(fs *filestore.FileStore) echo.HandlerFunc
- func ModelVersion(fs *filestore.FileStore) echo.HandlerFunc
- func Ping(fs *filestore.FileStore) echo.HandlerFunc
- type SimpleResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeospatialData ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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]