inspect

package
v0.2.21 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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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