handlers

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

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]

func Scrap

func Scrap(scraper *scrapers.Scraper) echo.HandlerFunc

Scrap godoc @Description Scrap data to fill the DB @Tags db @Success 201 @Router /scrap [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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