torrent

package
v0.0.0-...-288be38 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ec2RunningStatus = "Running"
	Ec2StoppedStatus = "Stopped"
)

Variables

View Source
var DownloadTorrentCmd = &cobra.Command{
	Use:   "download",
	Short: "To Download A Torrent",
	Long:  "to download a torrent using Transmission client.",
	Run: func(cmd *cobra.Command, args []string) {
		Download(magnetLink, downloadDir)
	},
}
View Source
var (
	RootTorrentCmd = &cobra.Command{
		Use:   "torrent",
		Short: "To Control Torrent Client",
	}
)
View Source
var SearchTorrentCmd = &cobra.Command{
	Use:   "search",
	Short: "To Search For Torrents",
	Long:  "to search for torrents using the given keyword(s)",
	Run: func(cmd *cobra.Command, args []string) {
		Search(keywords)
	},
}
View Source
var StatusTorrentCmd = &cobra.Command{
	Use:   "status",
	Short: "To Show Torrents Status",
	Long:  "to show the status of the torrents files being downloaded",
	Run: func(cmd *cobra.Command, args []string) {
		Status()
	},
}

Functions

func Download

func Download(magnetLink string, downloadDir string)
func Search(keywords string)

func Status

func Status()

Types

This section is empty.

Jump to

Keyboard shortcuts

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