Versions in this module Expand all Collapse all v1 v1.1.1 May 19, 2024 Changes in this version + type FileUploadCallbackFunc func(info FileUploadCallbackInfo) + type FileUploadCallbackInfo struct + ChunkCount int64 + ChunkID int64 + Status FileUploadCallbackStatus + type FileUploadCallbackStatus int + const FILE_UPLOAD_CALLBACK_STATUS_CREATE_FILE + const FILE_UPLOAD_CALLBACK_STATUS_FIRST_UPLOAD_CHUNK + const FILE_UPLOAD_CALLBACK_STATUS_REPORT_COMPLETE + const FILE_UPLOAD_CALLBACK_STATUS_RETRY_UPLOAD_CHUNK + const FILE_UPLOAD_CALLBACK_STATUS_VERIFY_CHUNK + func (s FileUploadCallbackStatus) String() string type Pan123 + func (p123 *Pan123) FileUploadWithCallback(parentFileID int64, filename string, file *os.File, retry int, ...) (*FileUploadRespData, bool, error) v1.1.0 May 17, 2024 Changes in this version + type GetFileDetailRespData struct + CreateAt string + Etag string + FileID int64 + Filename string + ParentFileID int64 + ParentName string + Size int64 + Status int + Trashed int + Type int + type GetOfflineDownloadProcessRespData struct + Process float64 + Status int + type OfflineDownloadRespData struct + Status int + TaskID int64 type Pan123 + func (p123 *Pan123) GetFileDetail(fileID int64) (*GetFileDetailRespData, bool, error) + func (p123 *Pan123) GetOfflineDownloadProcess(taskID int64) (*GetOfflineDownloadProcessRespData, bool, error) + func (p123 *Pan123) RenameFile(renameList []string) (bool, error) v1.0.4 May 17, 2024 v1.0.3 May 17, 2024 Changes in this version type Pan123 + func (p123 *Pan123) GetAccessTokenExpiredAt() (time.Time, error) v1.0.2 May 16, 2024 v1.0.0 May 16, 2024 Changes in this version + type CreateShareRespData struct + ShareID int64 + ShareKey string + type DisableDirectLinkRespData struct + Filename string + type EnableDirectLinkRespData struct + Filename string + type FileListInfoRespData struct + Category int + ContentType string + Etag string + FileID int64 + Filename string + ParentFileID int64 + ParentName string + Size int64 + Status int + Type int + type FileUploadRespData struct + Async bool + FileID int64 + PreuploadID string + Reuse bool + type GetDirectLinkM3u8InfoRespData struct + Address string + Resolutions string + type GetDirectLinkM3u8RespData struct + List []GetDirectLinkM3u8InfoRespData + type GetDirectLinkUrlRespData struct + Url string + type GetFileListRespData struct + FileList []FileListInfoRespData + type GetUserInfoRespData struct + HeadImage string + Mail string + Nickname string + Passport string + SpacePermanent int64 + SpaceTemp int64 + SpaceTempExpr string + SpaceUsed int64 + Uid int64 + type LoginRespData struct + AccessToken string + ExpiredAt string + type MkDirRespData struct + DirID int64 + type Pan123 struct + func NewPan123(accessToken, clientID, clientSecret string, timeout time.Duration, debug bool) *Pan123 + func (p123 *Pan123) CreateShare(shareName, fileIDList, sharePwd string, shareExpire int) (*CreateShareRespData, bool, error) + func (p123 *Pan123) DeleteFile(fileIDs []int64) (bool, error) + func (p123 *Pan123) DisableDirectLink(fileID int64) (*DisableDirectLinkRespData, bool, error) + func (p123 *Pan123) DoDirectLinkTranscode(ids []int64) (bool, error) + func (p123 *Pan123) EnableDirectLink(fileID int64) (*EnableDirectLinkRespData, bool, error) + func (p123 *Pan123) FileUpload(parentFileID int64, filename string, file *os.File) (*FileUploadRespData, bool, error) + func (p123 *Pan123) GetAccessToken() string + func (p123 *Pan123) GetDirectLinkM3u8(fileID []int64) (*GetDirectLinkM3u8RespData, bool, error) + func (p123 *Pan123) GetDirectLinkUrl(fileID int64) (*GetDirectLinkUrlRespData, bool, error) + func (p123 *Pan123) GetFileList(parentFileId, page, limit int64, orderBy, orderDirection string, trashed bool, ...) (*GetFileListRespData, bool, error) + func (p123 *Pan123) GetUploadAsyncResult(preuploadID string) (*UploadAsyncResultRespData, bool, error) + func (p123 *Pan123) GetUserInfo() (*GetUserInfoRespData, bool, error) + func (p123 *Pan123) Login() error + func (p123 *Pan123) MkDir(name string, parentID int64) (*MkDirRespData, bool, error) + func (p123 *Pan123) MoveFile(fileIDs []int64, toParentFileID int64) (bool, error) + func (p123 *Pan123) OfflineDownload(url, fileName, callBackUrl string) (bool, error) + func (p123 *Pan123) QueryDirectLinkTranscode(ids []int64) (*QueryDirectLinkTranscodeRespData, bool, error) + func (p123 *Pan123) RecoverFile(fileIDs []int64) (bool, error) + func (p123 *Pan123) TrashFile(fileIDs []int64) (bool, error) + type QueryDirectLinkTranscodeErrorListRespData struct + ErrorReason string + ID []int64 + type QueryDirectLinkTranscodeRespData struct + ErrorList []QueryDirectLinkTranscodeErrorListRespData + NoneList []int64 + Running []int64 + Success []int64 + type SDKError struct + Code int + Message string + TraceID string + func (e *SDKError) Error() string + type UploadAsyncResultRespData struct + Completed bool + FileID int64 Other modules containing this package github.com/123pan-3rd/go-sdk/v2