Documentation ¶
Index ¶
- func DeleteBaseFileFile(rootPath string, c *gin.Context)
- func DeleteList(c *gin.Context)
- func DeleteSpiderById(c *gin.Context)
- func DeleteSpiderFile(c *gin.Context)
- func DeleteSpiderList(c *gin.Context)
- func DeleteTaskById(c *gin.Context)
- func GetBaseFileFile(rootPath string, c *gin.Context)
- func GetBaseFileFileInfo(rootPath string, c *gin.Context)
- func GetBaseFileFsSvc(rootPath string) (svc interfaces.FsServiceV2, err error)
- func GetBaseFileListDir(rootPath string, c *gin.Context)
- func GetDefaultPagination() (p *entity.Pagination)
- func GetExport(c *gin.Context)
- func GetExportDownload(c *gin.Context)
- func GetFilter(c *gin.Context) (f *entity.Filter, err error)
- func GetFilterAll(c *gin.Context) (res bool, err error)
- func GetFilterColFieldOptions(c *gin.Context)
- func GetFilterQuery(c *gin.Context) (q bson.M, err error)
- func GetPagination(c *gin.Context) (p *entity.Pagination, err error)
- func GetProjectList(c *gin.Context)
- func GetResultList(c *gin.Context)
- func GetSetting(c *gin.Context)
- func GetSorts(c *gin.Context) (sorts []entity.Sort, err error)
- func GetSortsOption(c *gin.Context) (sort bson.D, err error)
- func GetSpiderById(c *gin.Context)
- func GetSpiderDataSource(c *gin.Context)
- func GetSpiderFile(c *gin.Context)
- func GetSpiderFileInfo(c *gin.Context)
- func GetSpiderList(c *gin.Context)
- func GetSpiderListDir(c *gin.Context)
- func GetStatsDaily(c *gin.Context)
- func GetStatsOverview(c *gin.Context)
- func GetStatsTasks(c *gin.Context)
- func GetSyncDownload(c *gin.Context)
- func GetSyncScan(c *gin.Context)
- func GetSystemInfo(c *gin.Context)
- func GetTaskById(c *gin.Context)
- func GetTaskData(c *gin.Context)
- func GetTaskList(c *gin.Context)
- func GetTaskLogs(c *gin.Context)
- func GetUserFromContext(c *gin.Context) (u interfaces.User)
- func GetUserFromContextV2(c *gin.Context) (u *models.UserV2)
- func GetUserMe(c *gin.Context)
- func HandleError(statusCode int, c *gin.Context, err error)
- func HandleErrorBadRequest(c *gin.Context, err error)
- func HandleErrorForbidden(c *gin.Context, err error)
- func HandleErrorInternalServerError(c *gin.Context, err error)
- func HandleErrorNoPrint(statusCode int, c *gin.Context, err error)
- func HandleErrorNotFound(c *gin.Context, err error)
- func HandleErrorNotFoundNoPrint(c *gin.Context, err error)
- func HandleErrorUnauthorized(c *gin.Context, err error)
- func HandleSuccess(c *gin.Context)
- func HandleSuccessWithData(c *gin.Context, data interface{})
- func HandleSuccessWithListData(c *gin.Context, data interface{}, total int)
- func InitRoutes(app *gin.Engine) (err error)
- func MustGetFilterAll(c *gin.Context) (res bool)
- func MustGetFilterQuery(c *gin.Context) (q bson.M)
- func MustGetPagination(c *gin.Context) (p *entity.Pagination)
- func MustGetSortOption(c *gin.Context) (sort bson.D)
- func PostBaseFileCopyFile(rootPath string, c *gin.Context)
- func PostBaseFileExport(rootPath string, c *gin.Context)
- func PostBaseFileRenameFile(rootPath string, c *gin.Context)
- func PostBaseFileSaveDir(rootPath string, c *gin.Context)
- func PostBaseFileSaveFile(rootPath string, c *gin.Context)
- func PostBaseFileSaveFiles(rootPath string, c *gin.Context)
- func PostExport(c *gin.Context)
- func PostLogin(c *gin.Context)
- func PostLogout(c *gin.Context)
- func PostSchedule(c *gin.Context)
- func PostScheduleDisable(c *gin.Context)
- func PostScheduleEnable(c *gin.Context)
- func PostSetting(c *gin.Context)
- func PostSpider(c *gin.Context)
- func PostSpiderCopyFile(c *gin.Context)
- func PostSpiderDataSource(c *gin.Context)
- func PostSpiderExport(c *gin.Context)
- func PostSpiderRenameFile(c *gin.Context)
- func PostSpiderRun(c *gin.Context)
- func PostSpiderSaveDir(c *gin.Context)
- func PostSpiderSaveFile(c *gin.Context)
- func PostSpiderSaveFiles(c *gin.Context)
- func PostTaskCancel(c *gin.Context)
- func PostTaskRestart(c *gin.Context)
- func PostTaskRun(c *gin.Context)
- func PostToken(c *gin.Context)
- func PostUser(c *gin.Context)
- func PostUserChangePassword(c *gin.Context)
- func PutScheduleById(c *gin.Context)
- func PutSetting(c *gin.Context)
- func PutSpiderById(c *gin.Context)
- func PutUserById(c *gin.Context)
- func RegisterActions(group *gin.RouterGroup, basePath string, actions []Action)
- func RegisterController[T any](group *gin.RouterGroup, basePath string, ctr *BaseControllerV2[T])
- func SortsToOption(sorts []entity.Sort) (sort bson.D, err error)
- type Action
- type BaseControllerV2
- func (ctr *BaseControllerV2[T]) DeleteById(c *gin.Context)
- func (ctr *BaseControllerV2[T]) DeleteList(c *gin.Context)
- func (ctr *BaseControllerV2[T]) GetById(c *gin.Context)
- func (ctr *BaseControllerV2[T]) GetList(c *gin.Context)
- func (ctr *BaseControllerV2[T]) PatchList(c *gin.Context)
- func (ctr *BaseControllerV2[T]) Post(c *gin.Context)
- func (ctr *BaseControllerV2[T]) PutById(c *gin.Context)
- type ListResponse
- type Response
- type RouterGroups
- type WsWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBaseFileFile ¶
func DeleteList ¶
func DeleteSpiderById ¶
func DeleteSpiderFile ¶
func DeleteSpiderList ¶
func DeleteTaskById ¶
func GetBaseFileFile ¶
func GetBaseFileFileInfo ¶
func GetBaseFileFsSvc ¶
func GetBaseFileFsSvc(rootPath string) (svc interfaces.FsServiceV2, err error)
func GetBaseFileListDir ¶
func GetDefaultPagination ¶
func GetDefaultPagination() (p *entity.Pagination)
func GetExportDownload ¶
func GetFilterAll ¶
GetFilterAll Get all from gin.Context
func GetFilterQuery ¶
GetFilterQuery Get bson.M from gin.Context
func GetPagination ¶
func GetPagination(c *gin.Context) (p *entity.Pagination, err error)
func GetProjectList ¶
func GetResultList ¶
func GetSetting ¶
func GetSortsOption ¶
GetSortsOption Get entity.Sort from gin.Context
func GetSpiderById ¶
func GetSpiderDataSource ¶
func GetSpiderFile ¶
func GetSpiderFileInfo ¶
func GetSpiderList ¶
func GetSpiderListDir ¶
func GetStatsDaily ¶
func GetStatsOverview ¶
func GetStatsTasks ¶
func GetSyncDownload ¶
func GetSyncScan ¶
func GetSystemInfo ¶
func GetTaskById ¶
func GetTaskData ¶
func GetTaskList ¶
func GetTaskLogs ¶
func GetUserFromContext ¶
func GetUserFromContext(c *gin.Context) (u interfaces.User)
func GetUserFromContextV2 ¶
func HandleErrorBadRequest ¶
func HandleErrorForbidden ¶
func HandleErrorNotFound ¶
func HandleErrorUnauthorized ¶
func HandleSuccess ¶
func HandleSuccessWithData ¶
func InitRoutes ¶
func MustGetFilterAll ¶
func MustGetPagination ¶
func MustGetPagination(c *gin.Context) (p *entity.Pagination)
func PostBaseFileCopyFile ¶
func PostBaseFileExport ¶
func PostBaseFileRenameFile ¶
func PostBaseFileSaveDir ¶
func PostBaseFileSaveFile ¶
func PostBaseFileSaveFiles ¶
func PostExport ¶
func PostLogout ¶
func PostSchedule ¶
func PostScheduleDisable ¶
func PostScheduleEnable ¶
func PostSetting ¶
func PostSpider ¶
func PostSpiderCopyFile ¶
func PostSpiderDataSource ¶
func PostSpiderExport ¶
func PostSpiderRenameFile ¶
func PostSpiderRun ¶
func PostSpiderSaveDir ¶
func PostSpiderSaveFile ¶
func PostSpiderSaveFiles ¶
func PostTaskCancel ¶
func PostTaskRestart ¶
func PostTaskRun ¶
func PostUserChangePassword ¶
func PutScheduleById ¶
func PutSetting ¶
func PutSpiderById ¶
func PutUserById ¶
func RegisterActions ¶
func RegisterActions(group *gin.RouterGroup, basePath string, actions []Action)
func RegisterController ¶
func RegisterController[T any](group *gin.RouterGroup, basePath string, ctr *BaseControllerV2[T])
Types ¶
type BaseControllerV2 ¶
type BaseControllerV2[T any] struct { // contains filtered or unexported fields }
func NewControllerV2 ¶
func NewControllerV2[T any](actions ...Action) *BaseControllerV2[T]
func (*BaseControllerV2[T]) DeleteById ¶
func (ctr *BaseControllerV2[T]) DeleteById(c *gin.Context)
func (*BaseControllerV2[T]) DeleteList ¶
func (ctr *BaseControllerV2[T]) DeleteList(c *gin.Context)
func (*BaseControllerV2[T]) GetById ¶
func (ctr *BaseControllerV2[T]) GetById(c *gin.Context)
func (*BaseControllerV2[T]) GetList ¶
func (ctr *BaseControllerV2[T]) GetList(c *gin.Context)
func (*BaseControllerV2[T]) PatchList ¶
func (ctr *BaseControllerV2[T]) PatchList(c *gin.Context)
func (*BaseControllerV2[T]) Post ¶
func (ctr *BaseControllerV2[T]) Post(c *gin.Context)
func (*BaseControllerV2[T]) PutById ¶
func (ctr *BaseControllerV2[T]) PutById(c *gin.Context)
type ListResponse ¶
type RouterGroups ¶
type RouterGroups struct { AuthGroup *gin.RouterGroup AnonymousGroup *gin.RouterGroup }
func NewRouterGroups ¶
func NewRouterGroups(app *gin.Engine) (groups *RouterGroups)
Source Files ¶
- base_file_v2.go
- base_v2.go
- export_v2.go
- filter_v2.go
- http.go
- login_v2.go
- project_v2.go
- result_v2.go
- router_v2.go
- schedule_v2.go
- setting_v2.go
- spider_v2.go
- stats_v2.go
- sync_v2.go
- system_info_v2.go
- task_v2.go
- token_v2.go
- user_v2.go
- utils_context.go
- utils_filter.go
- utils_http.go
- utils_pagination.go
- utils_sort.go
- ws_writer.go
Click to show internal directories.
Click to hide internal directories.