Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxFileSize int64 = 10 << 20 MaxMemSize = 10 << 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
A Downloader retrieves a file by name.
type HTTP ¶
HTTP handlers for file upload & download.
func (HTTP) HandleFileDownload ¶
func (h HTTP) HandleFileDownload(w http.ResponseWriter, r *http.Request)
HandleFileDownload is an http.HandlerFunc which loads a file by name and serves it's content.
func (HTTP) HandleFileUpload ¶
func (h HTTP) HandleFileUpload(w http.ResponseWriter, r *http.Request)
HandleFileUpload is an http.HandlerFunc which parses multipart forms and upserts file objects.
func (HTTP) HandleLink ¶
func (h HTTP) HandleLink(w http.ResponseWriter, r *http.Request)
HandleLink is an http.HandlerFunc which loads a file by its link and serves it's content.
Click to show internal directories.
Click to hide internal directories.