models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {

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

	/* 通知endpoint,当前支持http://和https://, 未来会支持sms:, email:, queues: 等 (Optional) */
	Endpoint string `json:"endpoint"`

	/* 触发通知的事件集合 (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 ThumbnailQuery

type ThumbnailQuery struct {

	/*  (Optional) */
	Status string `json:"status"`

	/*  (Optional) */
	Begin string `json:"begin"`

	/*  (Optional) */
	End string `json:"end"`

	/*  (Optional) */
	Marker string `json:"marker"`

	/*  (Optional) */
	Limit int `json:"limit"`

	/*  (Optional) */
	NextMarker string `json:"nextMarker"`

	/*  (Optional) */
	Truncated bool `json:"truncated"`

	/*  (Optional) */
	TaskList []ThumbnailTask `json:"taskList"`
}

type ThumbnailStatus

type ThumbnailStatus struct {

	/* 状态  */
	Status string `json:"status"`

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

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

type ThumbnailTask

type ThumbnailTask struct {

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

	/* 状态 (Optional) */
	Status string `json:"status"`

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

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

	/* 任务创建时间 (Optional) */
	LastUpdatedTime string `json:"lastUpdatedTime"`

	/*  (Optional) */
	Source ThumbnailTaskSource `json:"source"`

	/*  (Optional) */
	Target ThumbnailTaskTarget `json:"target"`

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

type ThumbnailTaskID

type ThumbnailTaskID struct {

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

type ThumbnailTaskRule

type ThumbnailTaskRule struct {

	/*  (Optional) */
	Mode *string `json:"mode"`

	/*  (Optional) */
	KeyFrame *bool `json:"keyFrame"`

	/*  (Optional) */
	StartTimeInSecond *int `json:"startTimeInSecond"`

	/*  (Optional) */
	EndTimeInSecond *int `json:"endTimeInSecond"`

	/*  (Optional) */
	Count *int `json:"count"`
}

type ThumbnailTaskSource

type ThumbnailTaskSource struct {

	/*  (Optional) */
	Bucket *string `json:"bucket"`

	/*  (Optional) */
	Key *string `json:"key"`
}

type ThumbnailTaskTarget

type ThumbnailTaskTarget struct {

	/*  (Optional) */
	DestBucket *string `json:"destBucket"`

	/*  (Optional) */
	DestKeyPrefix *string `json:"destKeyPrefix"`

	/*  (Optional) */
	Format *string `json:"format"`

	/*  (Optional) */
	WidthInPixel *int `json:"widthInPixel"`

	/*  (Optional) */
	HeightInPixel *int `json:"heightInPixel"`

	/*  (Optional) */
	Keys []string `json:"keys"`
}

type TranscodeStatus

type TranscodeStatus struct {

	/* 状态  */
	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