Documentation
¶
Index ¶
- Constants
- type Addition
- type CommonRsp
- type Conf
- type DownloadFileLink
- type Files
- type FilesData
- type QuarkUCTV
- func (d *QuarkUCTV) Config() driver.Config
- func (d *QuarkUCTV) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *QuarkUCTV) Drop(ctx context.Context) error
- func (d *QuarkUCTV) GetAddition() driver.Additional
- func (d *QuarkUCTV) Init(ctx context.Context) error
- func (d *QuarkUCTV) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *QuarkUCTV) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *QuarkUCTV) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *QuarkUCTV) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *QuarkUCTV) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error)
- func (d *QuarkUCTV) Remove(ctx context.Context, obj model.Obj) error
- func (d *QuarkUCTV) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
- type QuarkUCTVCommon
- type RefreshTokenAuthResp
- type Resp
- type StreamingFileLink
Constants ¶
View Source
const ( UserAgent = "" /* 132-byte string literal not displayed */ DeviceBrand = "Xiaomi" Platform = "tv" DeviceName = "M2004J7AC" DeviceModel = "M2004J7AC" BuildDevice = "M2004J7AC" BuildProduct = "M2004J7AC" DeviceGpu = "Adreno (TM) 550" ActivityRect = "{}" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
// Usually one of two
driver.RootID
OrderBy string `json:"order_by" type:"select" options:"file_name,updated_at" default:"updated_at"`
OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"desc"`
// define other
RefreshToken string `json:"refresh_token" required:"false" default:""`
// 必要且影响登录,由签名决定
DeviceID string `json:"device_id" required:"false" default:""`
// 登陆所用的数据 无需手动填写
QueryToken string `json:"query_token" required:"false" default:"" help:"don't edit'"`
// 视频文件链接获取方式 download(可获取源视频) or streaming(获取转码后的视频)
VideoLinkMethod string `json:"link_method" required:"true" type:"select" options:"download,streaming" default:"download"`
}
type DownloadFileLink ¶ added in v4.0.9
type Files ¶
type Files struct {
Fid string `json:"fid"`
ParentFid string `json:"parent_fid"`
Category int `json:"category"`
Filename string `json:"filename"`
Size int64 `json:"size"`
FileType string `json:"file_type"`
SubItems int `json:"sub_items,omitempty"`
Isdir int `json:"isdir"`
Duration int `json:"duration"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
IsBackup int `json:"is_backup"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
}
func (*Files) CreateTime ¶
type QuarkUCTV ¶
type QuarkUCTV struct {
*QuarkUCTVCommon
model.Storage
Addition
// contains filtered or unexported fields
}
func (*QuarkUCTV) GetAddition ¶
func (d *QuarkUCTV) GetAddition() driver.Additional
type QuarkUCTVCommon ¶
type QuarkUCTVCommon struct {
AccessToken string
}
type RefreshTokenAuthResp ¶
type RefreshTokenAuthResp struct {
Code int `json:"code"`
Message string `json:"message"`
Data struct {
Status int `json:"status"`
Errno int `json:"errno"`
ErrorInfo string `json:"error_info"`
ReqID string `json:"req_id"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresIn int `json:"expires_in"`
Scope string `json:"scope"`
} `json:"data"`
}
type StreamingFileLink ¶ added in v4.0.9
type StreamingFileLink struct {
CommonRsp
Data struct {
DefaultResolution string `json:"default_resolution"`
LastPlayTime int `json:"last_play_time"`
VideoInfo []struct {
Resolution string `json:"resolution"`
Accessable int `json:"accessable"`
TransStatus string `json:"trans_status"`
Duration int `json:"duration,omitempty"`
Size int64 `json:"size,omitempty"`
Format string `json:"format,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
URL string `json:"url,omitempty"`
Bitrate float64 `json:"bitrate,omitempty"`
DolbyVision struct {
Profile int `json:"profile"`
Level int `json:"level"`
} `json:"dolby_vision,omitempty"`
} `json:"video_info"`
AudioInfo []interface{} `json:"audio_info"`
} `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.