tus

package
v2.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUpload

func CreateUpload(baseCtx context.Context, httpClient *http.Client, timeout time.Duration, token string, filename string, parentID, length int64) (location string, err error)

func GetOffset

func GetOffset(ctx context.Context, httpClient *http.Client, timeout time.Duration, token string, location string) (n int64, err error)

func SendFile

func SendFile(ctx context.Context, httpClient *http.Client, timeout time.Duration, token string, r io.Reader, location string, offset int64) (fileID int64, crc32 string, err error)

func TerminateuploadJob

func TerminateuploadJob(ctx context.Context, httpClient *http.Client, timeout time.Duration, token string, location string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL