Documentation ¶
Index ¶
- Variables
- func BuildServer(startCfg *model.StartConfig) (*http.Server, net.Listener, error)
- func ContinueTask(w http.ResponseWriter, r *http.Request)
- func CreateTask(w http.ResponseWriter, r *http.Request)
- func DeleteTask(w http.ResponseWriter, r *http.Request)
- func DoProxy(w http.ResponseWriter, r *http.Request)
- func GetConfig(w http.ResponseWriter, r *http.Request)
- func GetTask(w http.ResponseWriter, r *http.Request)
- func GetTasks(w http.ResponseWriter, r *http.Request)
- func PauseTask(w http.ResponseWriter, r *http.Request)
- func PutConfig(w http.ResponseWriter, r *http.Request)
- func ReadJson(r *http.Request, w http.ResponseWriter, v any) bool
- func Resolve(w http.ResponseWriter, r *http.Request)
- func Start(startCfg *model.StartConfig) (int, error)
- func Stop()
- func WriteJson(w http.ResponseWriter, v any)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Downloader *download.Downloader
)
Functions ¶
func BuildServer ¶
func ContinueTask ¶
func ContinueTask(w http.ResponseWriter, r *http.Request)
func CreateTask ¶
func CreateTask(w http.ResponseWriter, r *http.Request)
func DeleteTask ¶
func DeleteTask(w http.ResponseWriter, r *http.Request)
func WriteJson ¶
func WriteJson(w http.ResponseWriter, v any)
Types ¶
Click to show internal directories.
Click to hide internal directories.