putio

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootFolderId     = 0
	ContentTypeVideo = "video/"
	Ongoing          = "ING"
	StatusSeeding    = "SEEDING"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	ID          int64
	Name        string
	IsDir       bool
	Size        int64
	FullPath    string
	ContentType string
}

type Put

type Put struct {
	Client                *put.Client
	MaxTransfers          int
	DefaultDownloadFolder string
	// contains filtered or unexported fields
}

func New

func New(token string) *Put

func (*Put) CleanupTransfers

func (put *Put) CleanupTransfers()

func (*Put) DeleteFile added in v1.0.4

func (put *Put) DeleteFile(id int64) bool

func (*Put) GetFileInfo

func (put *Put) GetFileInfo(id int64) *FileInfo

type SortedTransfers

type SortedTransfers []put.Transfer

func (SortedTransfers) Len

func (s SortedTransfers) Len() int

func (SortedTransfers) Less

func (s SortedTransfers) Less(i, j int) bool

func (SortedTransfers) Swap

func (s SortedTransfers) Swap(i, j int)

Jump to

Keyboard shortcuts

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