inspect

package
v0.2.26 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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, error)

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

func GetSourceChunkDetailHandler(
	db *gorm.DB,
	id string,
) (*model.Chunk, 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 /chunk/{id} [get]

func GetSourceChunksHandler

func GetSourceChunksHandler(
	db *gorm.DB,
	id string,
) ([]model.Chunk, 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, 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 /item/{id} [get]

func GetSourceItemsHandler

func GetSourceItemsHandler(
	db *gorm.DB,
	id string,
) ([]model.Item, 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 GetPathHandler added in v0.2.23

func GetPathHandler(
	db *gorm.DB,
	id string,
	request GetPathRequest,
) (*DirDetail, error)

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"`
}

Jump to

Keyboard shortcuts

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