Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resumable ¶
type Resumable struct {
ChunkNumber int `schema:"resumableChunkNumber"`
TotalChunks int `schema:"resumableTotalChunks"`
ChunkSize int `schema:"resumableChunkSize"`
CurrentChunkSize int `schema:"resumableCurrentChunkSize"`
TotalSize int `schema:"resumableTotalSize"`
Type string `schema:"resumableType"`
Identifier string `schema:"resumableIdentifier"`
FileName string `schema:"resumableFilename"`
RelativePath string `schema:"resumableRelativePath"`
AliasName string `schema:"aliasName"`
}
Resumable represents resumable js upload query pararmeters
type Uploader ¶
type Uploader struct {
// contains filtered or unexported fields
}
Uploader represents the necessary configuration for uploading a file
func New ¶
func New(s3 api.S3Clienter, vc api.VaultClienter, vaultPath, s3Region, s3Bucket string) *Uploader
New returns a new Uploader from the provided clients and vault path
func (*Uploader) CheckUploaded ¶
func (u *Uploader) CheckUploaded(w http.ResponseWriter, req *http.Request)
CheckUploaded checks to see if a chunk has been uploaded
Click to show internal directories.
Click to hide internal directories.