Versions in this module Expand all Collapse all v0 v0.0.6 Apr 28, 2021 Changes in this version + const CreateUri + const ListUri + const MetasUri + const PreCreateUri + const StreamingUri + const Superfile2UploadUri + type Downloader struct + AccessToken string + DownloadLink string + FsID uint64 + LocalFilePath string + Path string + TotalPart int + func NewDownloader(accessToken string, downloadLink string, localFilePath string) *Downloader + func NewDownloaderWithFsID(accessToken string, fsID uint64, localFilePath string) *Downloader + func (d *Downloader) Download() error + type File struct + AccessToken string + func NewFileClient(accessToken string) *File + func (f *File) List(dir string, start, limit int) (ListResponse, error) + func (f *File) Metas(fsIDs []uint64) (MetasResponse, error) + func (f *File) Streaming(path string, transcodingType string) (string, error) + type ListResponse struct + List []struct{ ... } + type LocalFileInfo struct + Md5 string + Size int64 + type ManagerResponse struct + Info []struct{ ... } + type MetasResponse struct + ErrorCode int + ErrorMsg string + List []struct{ ... } + RequestID int + RequestIDStr string + type PreCreateResponse struct + BlockList []int + Info UploadResponse + Path string + ReturnType int + UploadID string + type SuperFile2UploadResponse struct + Md5 string + PartSeq string + UploadID string + type UploadResponse struct + Ctime int + FsID uint64 + IsDir int + Md5 string + Mtime int + Path string + Size int + type Uploader struct + AccessToken string + LocalFilePath string + Path string + func NewUploader(accessToken, path, localFilePath string) *Uploader + func (u *Uploader) Create(uploadID string, blockList []string) (UploadResponse, error) + func (u *Uploader) PreCreate() (PreCreateResponse, error) + func (u *Uploader) SuperFile2Upload(uploadID string, partSeq int, partByte []byte) (SuperFile2UploadResponse, error) + func (u *Uploader) Upload() (UploadResponse, error)