Documentation
¶
Index ¶
- func GetDagsHandler(db *gorm.DB, id string) ([]model.Car, error)
- func GetSourceChunkDetailHandler(db *gorm.DB, id string) (*model.Chunk, error)
- func GetSourceChunksHandler(db *gorm.DB, id string) ([]model.Chunk, error)
- func GetSourceItemDetailHandler(db *gorm.DB, id string) (*model.Item, error)
- func GetSourceItemsHandler(db *gorm.DB, id string) ([]model.Item, error)
- type DirDetail
- type GetPathRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDagsHandler ¶
GetDagsHandler godoc @Summary Get all dag details of a data source @Tags Data Source @Accept json @Produce json @Param id path string true "Source ID" @Success 200 {array} model.Car @Failure 500 {object} handler.HTTPError @Router /source/{id}/chunks [get]
func GetSourceChunkDetailHandler ¶
GetSourceChunkDetailHandler godoc @Summary Get detail of a specific chunk @Tags Data Source @Accept json @Produce json @Param id path string true "Chunk ID" @Success 200 {object} model.Chunk @Failure 500 {object} handler.HTTPError @Router /chunk/{id} [get]
func GetSourceChunksHandler ¶
GetSourceChunksHandler godoc @Summary Get all chunk details of a data source @Tags Data Source @Accept json @Produce json @Param id path string true "Source ID" @Success 200 {array} model.Chunk @Failure 400 {object} handler.HTTPError @Failure 500 {object} handler.HTTPError @Router /source/{id}/chunks [get]
func GetSourceItemDetailHandler ¶
GetSourceItemDetailHandler godoc @Summary Get details about an item @Tags Data Source @Accept json @Produce json @Param id path string true "Item ID" @Success 200 {object} model.Item @Failure 500 {object} handler.HTTPError @Router /item/{id} [get]
func GetSourceItemsHandler ¶
GetSourceItemsHandler godoc @Summary Get all item details of a data source @Tags Data Source @Accept json @Produce json @Param id path string true "Source ID" @Success 200 {array} model.Item @Failure 400 {object} handler.HTTPError @Failure 500 {object} handler.HTTPError @Router /source/{id}/items [get]
Types ¶
type DirDetail ¶
func GetPathHandler ¶ added in v0.2.23
GetPathHandler godoc @Summary Get all item details inside a data source path @Tags Data Source @Accept json @Produce json @Param id path string true "Source ID" @Param request body GetPathRequest true "GetPathRequest" @Success 200 {object} DirDetail @Failure 400 {object} handler.HTTPError @Failure 500 {object} handler.HTTPError @Router /source/{id}/path [get]
type GetPathRequest ¶ added in v0.2.23
type GetPathRequest struct {
Path string `json:"path"`
}