Documentation ¶
Index ¶
- func GetDagsHandler(db *gorm.DB, id string) ([]model.Car, *handler.Error)
- func GetSourceChunkDetailHandler(db *gorm.DB, id string) (*model.Chunk, *handler.Error)
- func GetSourceChunksHandler(db *gorm.DB, id string) ([]model.Chunk, *handler.Error)
- func GetSourceItemDetailHandler(db *gorm.DB, id string) (*model.Item, *handler.Error)
- func GetSourceItemsHandler(db *gorm.DB, id string) ([]model.Item, *handler.Error)
- type DirDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDagsHandler ¶
GetDagsHandler 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 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 /source/{id}/chunks [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 /source/{id}/items [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 InspectPathHandler ¶ added in v0.2.8
InspectPathHandler 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 500 {object} handler.HTTPError @Router /source/{id}/items [get]