inspect

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDagsHandler

func GetDagsHandler(
	db *gorm.DB,
	id string,
) ([]model.Car, *handler.Error)

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

func GetSourceChunkDetailHandler(
	db *gorm.DB,
	id string,
) (*model.Chunk, *handler.Error)

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

func GetSourceChunksHandler(
	db *gorm.DB,
	id string,
) ([]model.Chunk, *handler.Error)

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

func GetSourceItemDetailHandler(
	db *gorm.DB,
	id string,
) (*model.Item, *handler.Error)

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

func GetSourceItemsHandler(
	db *gorm.DB,
	id string,
) ([]model.Item, *handler.Error)

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

type DirDetail struct {
	Current model.Directory
	Dirs    []model.Directory
	Items   []model.Item
}

func InspectPathHandler added in v0.2.8

func InspectPathHandler(
	db *gorm.DB,
	id string,
	path string,
) (*DirDetail, *handler.Error)

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]

Jump to

Keyboard shortcuts

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