cts

package
v0.0.0-...-6d4355a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CTSDefaultEndpoint = "https://cdn.api.qcloud.com/v2/index.php" //"https://cdn.api.cloud.tencent.com/v2/index.php"
	CTSAPIVersion      = "2017-03-12"
)
View Source
const DefaultTimeout = 60

Default timeout value for WaitForXXX method

View Source
const DefaultWaitForInterval = 5

Interval for checking status in WaitForXXX method

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCtsAudioTaskArgs

type AddCtsAudioTaskArgs struct {
	BucketRegion string `qcloud_arg:"bucketRegion"`
	BucketName   string `qcloud_arg:"bucketName"`
	Url          string `qcloud_arg:"url"`
}

增加音频转码任务

type AddCtsAudioTaskResponse

type AddCtsAudioTaskResponse struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	CodeDesc string `json:"codeDesc"`
	Data     struct {
		Vid string `json:"vid"`
	} `json:"codeDesc"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(secretId, secretKey, region string) *Client

NewClient creates a new instance of CVM client

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint, secretId, secretKey, region string) *Client

func (*Client) AddCtsAudioTask

func (client *Client) AddCtsAudioTask(args AddCtsAudioTaskArgs) (*AddCtsAudioTaskResponse, error)

func (*Client) GetCtsInfo

func (client *Client) GetCtsInfo(args GetCtsInfoArgs) (*GetCtsInfoResponse, error)

type GetCtsInfoArgs

type GetCtsInfoArgs struct {
	Vid string `qcloud_arg:"vid"`
	Url string `qcloud_arg:"url"`
}

视频转码结果查询接口

type GetCtsInfoResponse

type GetCtsInfoResponse struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	CodeDesc string `json:"codeDesc"`
}

Jump to

Keyboard shortcuts

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