Documentation
¶
Index ¶
- type Controller
- func (c *Controller) DownloadDelete(id string)
- func (c *Controller) DownloadsList() DownloadsListResponse
- func (c *Controller) FolderUnrestrict(link string) FolderUnrestrictResponse
- func (c *Controller) LinkCheck(link string) *LinkCheckResponse
- func (c *Controller) LinkDownload(link, outputPath string)
- type Download
- type DownloadsListResponse
- type FolderUnrestrictRequest
- type FolderUnrestrictResponse
- type LinkCheckRequest
- type LinkCheckResponse
- type LinkUnrestrictRequest
- type LinkUnrestrictResponse
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 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 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"` }
Click to show internal directories.
Click to hide internal directories.