models

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 0 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageStyle added in v1.7.0

type ImageStyle struct {

	/* 图片样式id(readOnly) (Optional) */
	Id int64 `json:"id"`

	/* 用户id(readOnly) (Optional) */
	UserId string `json:"userId"`

	/* 图片样式名称 (Optional) */
	StyleName string `json:"styleName"`

	/* 图片样式参数 (Optional) */
	Params string `json:"params"`

	/* 图片样式参数别名 (Optional) */
	ParamAlias string `json:"paramAlias"`

	/* 所属区域(readOnly) (Optional) */
	RegionId string `json:"regionId"`

	/* 所属Bucket(readOnly) (Optional) */
	BucketName string `json:"bucketName"`

	/* 图片样式状态(readOnly) (Optional) */
	Status int `json:"status"`

	/* 修改时间(readOnly) (Optional) */
	ModifyTime string `json:"modifyTime"`

	/* 创建时间(readOnly) (Optional) */
	CreatedTime string `json:"createdTime"`
}

type ImageStyleCount added in v1.7.0

type ImageStyleCount struct {

	/* 图片样式总数 (Optional) */
	StyleCount int `json:"styleCount"`
}

type ImageStyleID added in v1.7.0

type ImageStyleID struct {

	/* 图片样式ID (Optional) */
	Id int64 `json:"id"`
}

type ImageStyleQueryResult added in v1.7.0

type ImageStyleQueryResult struct {

	/* 按样式名称查询 (Optional) */
	StyleName string `json:"styleName"`

	/* 数据页码 (Optional) */
	PageNumber int `json:"pageNumber"`

	/* 每页数据的条数 (Optional) */
	PageSize int `json:"pageSize"`

	/* 图片样式列表 (Optional) */
	ImageStyleList []ImageStyle `json:"imageStyleList"`
}

type Notification

type Notification struct {

	/* 是否启用通知  */
	Enabled bool `json:"enabled"`

	/* 通知endpoint, 当前支持http://和https:// (Optional) */
	Endpoint string `json:"endpoint"`

	/* 触发通知的事件集合 (mpsTranscodeComplete, mpsThumbnailComplete) (Optional) */
	Events []string `json:"events"`

	/* 重试策略, BACKOFF_RETRY: 退避重试策略, 重试 3 次, 每次重试的间隔时间是 10秒 到 20秒 之间的随机值; EXPONENTIAL_DECAY_RETRY: 指数衰减重试, 重试 176 次, 每次重试的间隔时间指数递增至 512秒, 总计重试时间为1天; 每次重试的具体间隔为: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 512 ... 512 秒(共167个512) (Optional) */
	NotifyStrategy string `json:"notifyStrategy"`

	/* 描述了向 Endpoint 推送的消息格式, JSON: 包含消息正文和消息属性, SIMPLIFIED: 消息体即用户发布的消息, 不包含任何属性信息 (Optional) */
	NotifyContentFormat string `json:"notifyContentFormat"`
}

type StyleDelimiterConf added in v1.7.0

type StyleDelimiterConf struct {

	/* 图片样式分隔符配置(JSON数组);支持的分隔符包含:["-", "_", "/", "!"]  */
	Delimiters []string `json:"delimiters"`
}

type ThumbnailQuery

type ThumbnailQuery struct {

	/* 状态 (SUCCESS, ERROR, PENDDING, RUNNING) (Optional) */
	Status string `json:"status"`

	/* 查询开始时间 时间格式(GMT): yyyy-MM-dd’T’HH:mm:ss.SSS’Z’ (Optional) */
	Begin string `json:"begin"`

	/* 查询结束时间 时间格式(GMT): yyyy-MM-dd’T’HH:mm:ss.SSS’Z’ (Optional) */
	End string `json:"end"`

	/* 本次请求的marker, 标记查询的起始位置, 此处为taskID (Optional) */
	Marker string `json:"marker"`

	/* 本次请求返回的任务列表的最大元素个数, 有效值: [1-1000],默认值: 1000 (Optional) */
	Limit int `json:"limit"`

	/* 获取下一页所需要传递的marker值(此处为taskID), 仅当isTruncated为true时(数据未全部返回)出现 (readonly) (Optional) */
	NextMarker string `json:"nextMarker"`

	/* 指明返回数据是否被截断. true表示本页后面还有数据, 即数据未全部返回; false表示已是最后一页, 即数据已全部返回 (readonly) (Optional) */
	Truncated bool `json:"truncated"`

	/* 返回的task列表 (readonly) (Optional) */
	TaskList []ThumbnailTask `json:"taskList"`
}

type ThumbnailStatus

type ThumbnailStatus struct {

	/* 状态 (SUCESS, ERROR, PENDDING, RUNNING)  */
	Status string `json:"status"`

	/* 错误码 (Optional) */
	ErrorCode int `json:"errorCode"`

	/* 成功时生成的截图文件个数 (Optional) */
	Count int `json:"count"`
}

type ThumbnailTask

type ThumbnailTask struct {

	/* 任务ID (readonly) (Optional) */
	TaskID string `json:"taskID"`

	/* 状态 (SUCCESS, ERROR, PENDDING, RUNNING) (readonly) (Optional) */
	Status string `json:"status"`

	/* 错误码 (readonly) (Optional) */
	ErrorCode int `json:"errorCode"`

	/* 任务创建时间 时间格式(GMT): yyyy-MM-dd’T’HH:mm:ss.SSS’Z’  (readonly) (Optional) */
	CreatedTime string `json:"createdTime"`

	/* 任务创建时间 时间格式(GMT): yyyy-MM-dd’T’HH:mm:ss.SSS’Z’  (readonly) (Optional) */
	LastUpdatedTime string `json:"lastUpdatedTime"`

	/*   */
	Source ThumbnailTaskSource `json:"source"`

	/*   */
	Target ThumbnailTaskTarget `json:"target"`

	/*  (Optional) */
	Rule ThumbnailTaskRule `json:"rule"`
}

type ThumbnailTaskID

type ThumbnailTaskID struct {

	/*  (Optional) */
	TaskID string `json:"taskID"`
}

type ThumbnailTaskRule

type ThumbnailTaskRule struct {

	/* 截图模式 单张: single 多张: multi 平均: average default: single (Optional) */
	Mode *string `json:"mode"`

	/* 是否开启关键帧截图 default: true (Optional) */
	KeyFrame *bool `json:"keyFrame"`

	/* 生成截图的开始时间, mode=average 时不可选. default:0 (Optional) */
	StartTimeInSecond *int `json:"startTimeInSecond"`

	/* 生成截图的结束时间, mode=single/average时不可选, 且不得小于startTimeInSecond. default:-1(代表视频时长) (Optional) */
	EndTimeInSecond *int `json:"endTimeInSecond"`

	/* 截图数量, mode=single时不可选. default:1 (Optional) */
	Count *int `json:"count"`
}

type ThumbnailTaskSource

type ThumbnailTaskSource struct {

	/* 输入视频信息的 bucket  */
	Bucket string `json:"bucket"`

	/* 输入视频信息的 Key  */
	Key string `json:"key"`
}

type ThumbnailTaskTarget

type ThumbnailTaskTarget struct {

	/* 输入存放目标文件的 bucket  */
	DestBucket string `json:"destBucket"`

	/* 目标截图的Key的前缀, '前缀-taskID-%04d(num).(format)', 默认: sourceKey (Optional) */
	DestKeyPrefix *string `json:"destKeyPrefix"`

	/* 目标截图的格式 default: jpg (Optional) */
	Format *string `json:"format"`

	/* 目标截图的宽, 如果视频实际分辨率低于目标分辨率则按照实际分辨率输出 default: 0 代表源视频高 其他[8, 4096] (Optional) */
	WidthInPixel *int `json:"widthInPixel"`

	/* 目标截图的高, 如果视频实际分辨率低于目标分辨率则按照实际分辨率输出 default: 0 代表源视频高 其他[8, 4096] (Optional) */
	HeightInPixel *int `json:"heightInPixel"`

	/* 目标截图的Key的集合 (readonly) (Optional) */
	Keys []string `json:"keys"`
}

type TranscodeStatus

type TranscodeStatus struct {

	/* 状态 (SUCESS, ERROR, PENDDING, RUNNING)  */
	Status string `json:"status"`

	/* 错误码 (Optional) */
	ErrorCode int `json:"errorCode"`

	/* 通知消息, 由work调用, 暂时方案 (Optional) */
	NotifyMessage string `json:"notifyMessage"`
}

Jump to

Keyboard shortcuts

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