cloudreve

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDbPath = "/usr/local/cloudreve/cloudreve.db"
View Source
const InstallTo = "/usr/local/cloudreve"
View Source
const Name = "cloudreve"
View Source
const SystemdPath = "/etc/systemd/system/cloudreve.service"

Variables

This section is empty.

Functions

func Disable added in v1.0.2

func Disable() error

Disable 取消开机自启

func Enable

func Enable() error

Enable 设置为开机启动

func GetDownloadUrl

func GetDownloadUrl(goos, goArch, version string) (string, error)

GetDownloadUrl 获取版本的下载链接

func GetLastReleaseVersion

func GetLastReleaseVersion() (string, error)

GetLastReleaseVersion 获取Cloudreve最后一个版本的版本号

func Install

func Install(goos, goArch, version, installTo, systemdPath string) error

Install 安装Cloudreve服务

func InstallLastRelease

func InstallLastRelease() error

InstallLastRelease 安装最新版本

func IsRunning

func IsRunning() (bool, error)

IsRunning 检查Cloudreve是否在运行状态

func ResetAdminPassword

func ResetAdminPassword() (string, error)

ResetAdminPassword 重置并获取管理员密码

func SetAria2 added in v1.0.2

func SetAria2(dbPath, rpc, token, temp string) error

SetAria2 配置Aria2

func Start

func Start() error

Start 启动Cloudreve服务

func Stop

func Stop() error

Stop 停止Cloudreve服务

Types

This section is empty.

Jump to

Keyboard shortcuts

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