aria2

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultToken = "ARIARPCACCESSTOKEN"
View Source
const SystemdPath = "/etc/systemd/system/aria2.service"

Variables

This section is empty.

Functions

func Disable

func Disable() error

Disable 取消开机自启

func Enable

func Enable() error

Enable 设为开机自启

func Install

func Install(systemdPath, runtimePath string) error

Install 通过Apt或Yum安装Aria2

func InstallToSystem

func InstallToSystem() error

InstallToSystem 安装到系统

func IsRunning

func IsRunning() (bool, error)

IsRunning 检查Aria2服务是否已启动

func Start

func Start() error

Start 启动Aria2服务

func Stop

func Stop() error

Stop 停止Aria2服务

Types

This section is empty.

Jump to

Keyboard shortcuts

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