Documentation ¶
Index ¶
- type Downloader
- func (d *Downloader) DownloadByAddress(c *fasthttp.RequestCtx)
- func (d *Downloader) DownloadByAttribute(c *fasthttp.RequestCtx)
- func (d *Downloader) DownloadZipped(c *fasthttp.RequestCtx)
- func (d *Downloader) HeadByAddress(c *fasthttp.RequestCtx)
- func (d *Downloader) HeadByAttribute(c *fasthttp.RequestCtx)
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
Downloader is a download request handler.
func (*Downloader) DownloadByAddress ¶
func (d *Downloader) DownloadByAddress(c *fasthttp.RequestCtx)
DownloadByAddress handles download requests using simple cid/oid format.
func (*Downloader) DownloadByAttribute ¶
func (d *Downloader) DownloadByAttribute(c *fasthttp.RequestCtx)
DownloadByAttribute handles attribute-based download requests.
func (*Downloader) DownloadZipped ¶
func (d *Downloader) DownloadZipped(c *fasthttp.RequestCtx)
DownloadZipped handles zip by prefix requests.
func (*Downloader) HeadByAddress ¶
func (d *Downloader) HeadByAddress(c *fasthttp.RequestCtx)
HeadByAddress handles head requests using simple cid/oid format.
func (*Downloader) HeadByAttribute ¶
func (d *Downloader) HeadByAttribute(c *fasthttp.RequestCtx)
HeadByAttribute handles attribute-based head requests.
type Settings ¶
type Settings struct {
// contains filtered or unexported fields
}
Settings stores reloading parameters, so it has to provide atomic getters and setters.
func (*Settings) SetZipCompression ¶
func (*Settings) ZipCompression ¶
Click to show internal directories.
Click to hide internal directories.