realdebrid

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(apiToken string, baseUrl string) *Controller

func (*Controller) DownloadDelete added in v0.0.6

func (c *Controller) DownloadDelete(id string)

func (*Controller) DownloadsList added in v0.0.6

func (c *Controller) DownloadsList() DownloadsListResponse

func (*Controller) FolderUnrestrict

func (c *Controller) FolderUnrestrict(link string) FolderUnrestrictResponse

func (*Controller) LinkCheck

func (c *Controller) LinkCheck(link string) *LinkCheckResponse

func (*Controller) LinkDownload

func (c *Controller) LinkDownload(link, outputPath string)

type Download added in v0.0.6

type Download struct {
	Id        string `json:"id"`
	Filename  string `json:"filename"`
	MimeType  string `json:"mimeType"`
	FileSize  int    `json:"filesize"`
	Link      string `json:"link"`
	Host      string `json:"host"`
	Chunks    int    `json:"chunks"`
	Download  string `json:"download"`
	Generated string `json:"generated"`
}

type DownloadsListResponse added in v0.0.6

type DownloadsListResponse = []Download

type FolderUnrestrictRequest

type FolderUnrestrictRequest struct {
	Link string `structs:"link"`
}

type FolderUnrestrictResponse

type FolderUnrestrictResponse = []string

type LinkCheckRequest

type LinkCheckRequest struct {
	Link string `structs:"link"`
}

type LinkCheckResponse

type LinkCheckResponse struct {
	Host      string `json:"host"`
	Link      string `json:"link"`
	Filename  string `json:"filename"`
	FileSize  int    `json:"filesize"`
	Supported int    `json:"supported"`
}

type LinkUnrestrictRequest

type LinkUnrestrictRequest struct {
	Link string `structs:"link"`
}

type LinkUnrestrictResponse

type LinkUnrestrictResponse struct {
	Id         string `json:"id"`
	Filename   string `json:"filename"`
	MimeType   string `json:"mimeType"`
	FileSize   int    `json:"filesize"`
	Link       string `json:"link"`
	Host       string `json:"host"`
	Chunks     int    `json:"chunks"`
	Supported  int    `json:"supported"`
	Crc        int    `json:"crc"`
	Download   string `json:"download"`
	Streamable int    `json:"streamable"`
}

Jump to

Keyboard shortcuts

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