rest

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Downloader *download.Downloader
)

Functions

func BuildServer

func BuildServer(startCfg *model.StartConfig) (*http.Server, net.Listener, error)

func ContinueTask

func ContinueTask(w http.ResponseWriter, r *http.Request)

func ContinueTasks added in v1.6.0

func ContinueTasks(w http.ResponseWriter, r *http.Request)

func CreateTask

func CreateTask(w http.ResponseWriter, r *http.Request)

func CreateTaskBatch added in v1.5.7

func CreateTaskBatch(w http.ResponseWriter, r *http.Request)

func DeleteExtension added in v1.4.0

func DeleteExtension(w http.ResponseWriter, r *http.Request)

func DeleteTask

func DeleteTask(w http.ResponseWriter, r *http.Request)

func DeleteTasks added in v1.5.4

func DeleteTasks(w http.ResponseWriter, r *http.Request)

func DoProxy

func DoProxy(w http.ResponseWriter, r *http.Request)

func GetConfig

func GetConfig(w http.ResponseWriter, r *http.Request)

func GetExtension added in v1.4.0

func GetExtension(w http.ResponseWriter, r *http.Request)

func GetExtensions added in v1.4.0

func GetExtensions(w http.ResponseWriter, r *http.Request)

func GetStats added in v1.5.4

func GetStats(w http.ResponseWriter, r *http.Request)

func GetTask

func GetTask(w http.ResponseWriter, r *http.Request)

func GetTasks

func GetTasks(w http.ResponseWriter, r *http.Request)

func Info added in v1.5.7

func Info(w http.ResponseWriter, r *http.Request)

func InstallExtension added in v1.4.0

func InstallExtension(w http.ResponseWriter, r *http.Request)

func PauseTask

func PauseTask(w http.ResponseWriter, r *http.Request)

func PauseTasks added in v1.6.0

func PauseTasks(w http.ResponseWriter, r *http.Request)

func PutConfig

func PutConfig(w http.ResponseWriter, r *http.Request)

func ReadJson

func ReadJson(r *http.Request, w http.ResponseWriter, v any) bool

func Resolve

func Resolve(w http.ResponseWriter, r *http.Request)

func Start

func Start(startCfg *model.StartConfig) (port int, err error)

func Stop

func Stop()

func SwitchExtension added in v1.4.0

func SwitchExtension(w http.ResponseWriter, r *http.Request)

func UpdateCheckExtension added in v1.4.0

func UpdateCheckExtension(w http.ResponseWriter, r *http.Request)

func UpdateExtension added in v1.4.0

func UpdateExtension(w http.ResponseWriter, r *http.Request)

func UpdateExtensionSettings added in v1.4.0

func UpdateExtensionSettings(w http.ResponseWriter, r *http.Request)

func WriteJson

func WriteJson(w http.ResponseWriter, v any)

func WriteStatusJson added in v1.3.8

func WriteStatusJson(w http.ResponseWriter, statusCode int, v any)

Types

type Config

type Config struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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