v1

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTask

func GetTask(req *restful.Request, resp *restful.Response)

GetTask handle the http request for getting task with conditions.

func GetWorkStats

func GetWorkStats(req *restful.Request, resp *restful.Response)

GetWorkStats handle the http request for getting work with conditions.

func InitStorage

func InitStorage() (err error)

InitStorage After server init, the instances of manager, store ... etc. should be given into api handler.

func ListTask

func ListTask(req *restful.Request, resp *restful.Response)

ListTask handle the http request for listing tasks with conditions.

func ListWorks

func ListWorks(req *restful.Request, resp *restful.Response)

ListWorks handle the http request for listing works with conditions.

Types

type WorkStats

type WorkStats struct {
	disttask.TableWorkStats

	JobStatsData string `json:"job_stats_data"`
}

WorkStats describe the stats info return to web

Jump to

Keyboard shortcuts

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