inspect

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDagsHandler

func GetDagsHandler(
	ctx context.Context,
	db *gorm.DB,
	id string,
) ([]model.Car, error)

func GetFileDealsHandler added in v0.3.0

func GetFileDealsHandler(
	db *gorm.DB,
	id uint64,
) ([]model.Deal, error)

func GetSourceFileDetailHandler added in v0.3.0

func GetSourceFileDetailHandler(
	ctx context.Context,
	db *gorm.DB,
	id string,
) (*model.File, error)

func GetSourceFilesHandler added in v0.3.0

func GetSourceFilesHandler(
	ctx context.Context,
	db *gorm.DB,
	id string,
) ([]model.File, error)

func GetSourcePackJobDetailHandler added in v0.3.0

func GetSourcePackJobDetailHandler(
	ctx context.Context,
	db *gorm.DB,
	id string,
) (*model.PackJob, error)

func GetSourcePackJobsHandler added in v0.3.0

func GetSourcePackJobsHandler(
	ctx context.Context,
	db *gorm.DB,
	id uint32,
	request GetSourcePackJobsRequest,
) ([]model.PackJob, error)

Types

type DirDetail

type DirDetail struct {
	Current model.Directory
	Dirs    []model.Directory
	Files   []model.File
}

func GetPathHandler added in v0.2.23

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

type GetPathRequest added in v0.2.23

type GetPathRequest struct {
	Path string `json:"path"`
}

type GetSourcePackJobsRequest added in v0.3.0

type GetSourcePackJobsRequest struct {
	State model.WorkState `json:"state"`
}

Jump to

Keyboard shortcuts

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