Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultWG sync.WaitGroup
WG exports wait group, so we can wait for it
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.
Functions ¶
func HTTPHandler ¶
func HTTPHandler(w http.ResponseWriter, r *http.Request)
HTTPHandler is main request/response handler for HTTP server.
Types ¶
type CalculateTransferredSize ¶
type CalculateTransferredSize func(body string, partSize int, status UploadStatus) (int64, error)
type Resumable ¶
type Resumable struct { Status UploadStatus // contains filtered or unexported fields }
Resumable structure
Click to show internal directories.
Click to hide internal directories.