Documentation ¶
Index ¶
- func Compute(computer *computers.Computer) echo.HandlerFunc
- func Drop(op *models.DBOperator) echo.HandlerFunc
- func GetAllDatasets(db *gorm.DB) echo.HandlerFunc
- func GetAllEntries(op *models.DBOperator) echo.HandlerFunc
- func GetAllFields(db *gorm.DB) echo.HandlerFunc
- func GetAllPartitions(db *gorm.DB) echo.HandlerFunc
- func GetAllProjects(db *gorm.DB) echo.HandlerFunc
- func GetAllTables(db *gorm.DB) echo.HandlerFunc
- func GetDataset(db *gorm.DB) echo.HandlerFunc
- func GetProject(db *gorm.DB) echo.HandlerFunc
- func GetTable(db *gorm.DB) echo.HandlerFunc
- func Migrate(op *models.DBOperator) echo.HandlerFunc
- func Scrap(scraper *scrapers.Scraper) echo.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compute ¶
func Compute(computer *computers.Computer) echo.HandlerFunc
Compute godoc @Description Compute the data @Tags db @Success 201 @Router /scrap [post]
func Drop ¶
func Drop(op *models.DBOperator) echo.HandlerFunc
Drop godoc @Description Drop the DB @Tags db @Success 201 @Router /drop [post]
func GetAllDatasets ¶
func GetAllDatasets(db *gorm.DB) echo.HandlerFunc
GetAllDatasets godoc @Description Get all the datasets @Tags projects @Param project path string true "Project ID" @Success 200 {array} models.Dataset @Router /projects/{project}/datasets [get]
func GetAllEntries ¶
func GetAllEntries(op *models.DBOperator) echo.HandlerFunc
GetAllEntries godoc @Description GetAllEntries return the list of projects, datasets and tables into the DB @Tags db @Success 201 @Router /entries [get]
func GetAllFields ¶
func GetAllFields(db *gorm.DB) echo.HandlerFunc
GetAllFields godoc @Description Get all the fields @Tags projects @Param project path string true "Project ID" @Param dataset path string true "Dataset ID" @Param table path string true "Table ID" @Success 200 {array} models.Field @Router /projects/{project}/datasets/{dataset}/tables/{table}/fields [get]
func GetAllPartitions ¶
func GetAllPartitions(db *gorm.DB) echo.HandlerFunc
GetAllPartitions godoc @Description Get all the partitions @Tags projects @Param project path string true "Project ID" @Param dataset path string true "Dataset ID" @Param table path string true "Table ID" @Success 200 {array} models.Partition @Router /projects/{project}/datasets/{dataset}/tables/{table}/partitions [get]
func GetAllProjects ¶
func GetAllProjects(db *gorm.DB) echo.HandlerFunc
GetAllProjects godoc @Description Get all the projects @Tags projects @Success 200 {array} models.Project @Router /projects [get]
func GetAllTables ¶
func GetAllTables(db *gorm.DB) echo.HandlerFunc
GetAllTables godoc @Description Get all the tables @Tags projects @Param project path string true "Project ID" @Param dataset path string true "Dataset ID" @Success 200 {array} models.Table @Router /projects/{project}/datasets/{dataset}/tables [get]
func GetDataset ¶
func GetDataset(db *gorm.DB) echo.HandlerFunc
GetDataset godoc @Description Get the specified dataset @Tags projects @Param project path string true "Project ID" @Param dataset path string true "Dataset ID" @Success 200 {object} models.Dataset @Router /projects/{project}/datasets/{dataset} [get]
func GetProject ¶
func GetProject(db *gorm.DB) echo.HandlerFunc
GetProject godoc @Description Get the specified project @Tags projects @Param project path string true "Project ID" @Success 200 {object} models.Project @Router /projects/{project} [get]
func GetTable ¶
func GetTable(db *gorm.DB) echo.HandlerFunc
GetTable godoc @Description Get the specified table @Tags projects @Param project path string true "Project ID" @Param dataset path string true "Dataset ID" @Param table path string true "Table ID" @Success 200 {object} models.Table @Router /projects/{project}/datasets/{dataset}/tables/{table} [get]
func Migrate ¶
func Migrate(op *models.DBOperator) echo.HandlerFunc
Migrate godoc @Description Migrate the DB @Tags db @Success 201 @Router /migrate [post]
Types ¶
This section is empty.