Documentation
¶
Index ¶
- Constants
- type AppVersionInfo
- type AppVersionResult
- type CommonParams
- type DownloadInfo
- type DownloadResult
- type DownloadUrl
- type FileGetResult
- type FileInfo
- type FileListResult
- type ImageGetResult
- type IndexInfoResult
- type LabelCreateResult
- type LabelInfo
- type LabelListResult
- type LoginInfo
- type OfflineAddUrlsResult
- type OfflineListResult
- type QrcodeLoginResult
- type QrcodeStatusResult
- type QrcodeTokenResult
- type RecycleBinItem
- type RecycleBinListResult
- type ShareFileInfo
- type ShareInfo
- type ShareListResult
- type ShareSnapResult
- type ShortcutInfo
- type ShortcutListResult
- type SizeInfo
- type TaskInfo
- type UploadInfoResult
- type UploadInitResult
- type UploadSampleInitResult
- type UploadSampleResult
- type UploadTokenResult
- type UserInfoResult
- type VideoInfo
- type VideoPlayResult
- type VideoSubtitleInfo
- type VideoSubtitleResult
- type VoidResult
Constants ¶
View Source
const ( )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppVersionInfo ¶
type AppVersionResult ¶
type AppVersionResult map[string]*AppVersionInfo
type CommonParams ¶ added in v0.6.3
type CommonParams struct {
// App version
AppVer string
// User ID
UserId string
// MD5 hash of user ID
UserHash string
// User key for uploading
UserKey string
}
Common parameters for several APIs
func (*CommonParams) SetUserInfo ¶ added in v0.6.3
func (c *CommonParams) SetUserInfo(userId int, userKey string)
type DownloadInfo ¶
type DownloadInfo struct {
FileName string `json:"file_name"`
FileSize json.Number `json:"file_size"`
PickCode string `json:"pick_code"`
Url DownloadUrl `json:"url"`
}
type DownloadResult ¶
type DownloadResult map[string]*DownloadInfo
type DownloadUrl ¶
type DownloadUrl struct {
Url string
}
func (*DownloadUrl) UnmarshalJSON ¶
func (u *DownloadUrl) UnmarshalJSON(b []byte) (err error)
type FileGetResult ¶
type FileGetResult []*FileInfo
type FileInfo ¶
type FileInfo struct {
AreaId util.IntNumber `json:"aid"`
CategoryId string `json:"cid"`
FileId string `json:"fid"`
ParentId string `json:"pid"`
Name string `json:"n"`
Type string `json:"ico"`
Size util.IntNumber `json:"s"`
Sha1 string `json:"sha"`
PickCode string `json:"pc"`
IsStar util.Boolean `json:"m"`
Labels []*LabelInfo `json:"fl"`
CreatedTime string `json:"tp"`
UpdatedTime string `json:"te"`
ModifiedTime string `json:"t"`
// MediaDuration describes duration in seconds for audio/video.
MediaDuration float64 `json:"play_long"`
// Special fields for video
VideoFlag int `json:"iv"`
VideoDefinition int `json:"vdi"`
}
type FileListResult ¶
type ImageGetResult ¶
type IndexInfoResult ¶
type LabelCreateResult ¶
type LabelCreateResult []*LabelInfo
type LabelListResult ¶
type OfflineAddUrlsResult ¶
type OfflineAddUrlsResult []*TaskInfo
func (*OfflineAddUrlsResult) UnmarshalResult ¶
func (r *OfflineAddUrlsResult) UnmarshalResult(data []byte) (err error)
type OfflineListResult ¶
type QrcodeLoginResult ¶
type QrcodeStatusResult ¶
type QrcodeTokenResult ¶
type RecycleBinItem ¶
type RecycleBinListResult ¶
type RecycleBinListResult struct {
Count int
Item []*RecycleBinItem
}
type ShareFileInfo ¶ added in v0.7.5
type ShareFileInfo struct {
}
type ShareListResult ¶
type ShareListResult struct {
}
type ShareSnapResult ¶ added in v0.7.5
type ShareSnapResult struct {
}
type ShortcutInfo ¶
type ShortcutListResult ¶
type ShortcutListResult struct {
List []*ShortcutInfo `json:"list"`
}
type TaskInfo ¶ added in v0.7.1
type TaskInfo struct {
InfoHash string `json:"info_hash"`
Name string `json:"name"`
Size int64 `json:"size"`
Url string `json:"url"`
AddTime int64 `json:"add_time"`
Status int `json:"status"`
Percent float64 `json:"percentDone"`
UpdateTime int64 `json:"last_update"`
FileId string `json:"file_id"`
DirId string `json:"wp_path_id"`
}
type UploadInfoResult ¶
type UploadInitResult ¶
type UploadSampleInitResult ¶
type UploadSampleResult ¶
type UploadSampleResult struct {
AreaId util.IntNumber `json:"aid"`
CategoryId string `json:"cid"`
FileId string `json:"file_id"`
FileName string `json:"file_name"`
FileSize util.IntNumber `json:"file_size"`
FileSha1 string `json:"sha1"`
PickCode string `json:"pick_code"`
CreateTime util.IntNumber `json:"file_ptime"`
}
type UploadTokenResult ¶
type UserInfoResult ¶
type VideoPlayResult ¶
type VideoPlayResult struct {
IsReady bool
FileId string
FileName string
FileSize int64
VideoDuration float64
Videos []*VideoInfo
}
func (*VideoPlayResult) UnmarshalResult ¶
func (r *VideoPlayResult) UnmarshalResult(data []byte) (err error)
type VideoSubtitleInfo ¶
func (*VideoSubtitleInfo) UnmarshalJSON ¶
func (i *VideoSubtitleInfo) UnmarshalJSON(data []byte) (err error)
type VideoSubtitleResult ¶
type VideoSubtitleResult struct {
AutoLoad VideoSubtitleInfo `json:"autoload"`
List []*VideoSubtitleInfo `json:"list"`
}
Click to show internal directories.
Click to hide internal directories.