Documentation
¶
Index ¶
- type Uploader
- func (u *Uploader) CreateUpload(baseCtx context.Context, filename string, parentID, length int64) (location string, err error)
- func (u *Uploader) GetOffset(ctx context.Context, location string) (n int64, err error)
- func (u *Uploader) SendFile(ctx context.Context, r io.Reader, location string, offset int64) (fileID int64, crc32 string, err error)
- func (u *Uploader) TerminateUpload(ctx context.Context, location string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Uploader ¶ added in v2.0.21
type Uploader struct {
// contains filtered or unexported fields
}
func NewUploader ¶ added in v2.0.21
func (*Uploader) CreateUpload ¶ added in v2.0.21
Click to show internal directories.
Click to hide internal directories.