Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FileStorage = fileStorage{
Path: "./files",
TempPath: ".tmp",
}
FileStorage settings. When finished uploading with success files are stored inside Path config. While uploading temporary files are stored inside TempPath directory.
View Source
var WG sync.WaitGroup
WG exports wait group, so we can wait for it
Functions ¶
func HTTPHandler ¶
func HTTPHandler(w http.ResponseWriter, r *http.Request)
HTTPHandler is main request/response handler for HTTP server.
Types ¶
type Resumable ¶
type Resumable struct { Status UploadStatus // contains filtered or unexported fields }
Resumable structure
Click to show internal directories.
Click to hide internal directories.