Documentation ¶
Index ¶
- Constants
- Variables
- type GetDirectEditResultRequest
- type GetDirectEditResultResponse
- type SubmitDirectEditTaskAsyncResponse
- type SubmitDirectEditTaskRequest
- type SubmitTemplateTaskAsyncResponse
- type SubmitTemplateTaskRequest
- type TemplateParamItem
- type VEdit
- func (e *VEdit) GetDirectEditResult(request *GetDirectEditResultRequest) (*GetDirectEditResultResponse, error)
- func (e *VEdit) SubmitDirectEditTaskAsync(request *SubmitDirectEditTaskRequest) (*SubmitDirectEditTaskAsyncResponse, error)
- func (e *VEdit) SubmitTemplateTaskAsync(request *SubmitTemplateTaskRequest) (*SubmitTemplateTaskAsyncResponse, error)
Constants ¶
View Source
const (
DefaultTimeout = 10 * time.Second
)
Variables ¶
View Source
var ( ServiceInfoMap = map[string]*base.ServiceInfo{ base.RegionCnNorth1: { Timeout: DefaultTimeout, Host: "vedit.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{ Region: base.RegionCnNorth1, Service: "edit", }, }, } ApiInfoList = map[string]*base.ApiInfo{ "SubmitDirectEditTaskAsync": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"SubmitDirectEditTaskAsync"}, "Version": []string{"2018-01-01"}, }, }, "GetDirectEditResult": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"GetDirectEditResult"}, "Version": []string{"2018-01-01"}, }, }, "SubmitTemplateTaskAsync": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"SubmitTemplateTaskAsync"}, "Version": []string{"2018-01-01"}, }, }, } )
Functions ¶
This section is empty.
Types ¶
type GetDirectEditResultRequest ¶
type GetDirectEditResultRequest struct {
ReqIds []string `json:"ReqIds"`
}
type GetDirectEditResultResponse ¶
type GetDirectEditResultResponse struct { ResponseMetadata *base.ResponseMetadata Result []struct { ReqId string `json:"ReqId"` Param interface{} `json:"EditParam"` Priority int32 `json:"Priority"` CallbackUri string `json:"CallbackUri"` CallbackArgs string `json:"CallbackArgs"` Status string `json:"Status"` OutputVid string `json:"OutputVid"` TaskId string `json:"TaskId"` } `json:"Result"` }
type SubmitDirectEditTaskAsyncResponse ¶
type SubmitDirectEditTaskAsyncResponse struct { ResponseMetadata *base.ResponseMetadata Result struct { ReqId string `json:"ReqId"` } `json:"Result"` }
type SubmitDirectEditTaskRequest ¶
type SubmitDirectEditTaskRequest struct { Uploader string `json:"Uploader,omitempty"` Application string `json:"Application,omitempty"` VideoName string `json:"VideoName,omitempty"` Param interface{} `json:"EditParam"` Priority int32 `json:"Priority"` CallbackUri string `json:"CallbackUri,omitempty"` CallbackArgs string `json:"CallbackArgs,omitempty"` }
type SubmitTemplateTaskAsyncResponse ¶
type SubmitTemplateTaskAsyncResponse struct { ResponseMetadata *base.ResponseMetadata Result []string `json:"Result"` }
type SubmitTemplateTaskRequest ¶
type SubmitTemplateTaskRequest struct { TemplateId string `json:"TemplateId,omitempty"` Space string `json:"Space,omitempty"` VideoName []string `json:"VideoName,omitempty"` Params [][]TemplateParamItem `json:"Params,omitempty"` Priority int32 `json:"Priority"` CallbackUri string `json:"CallbackUri,omitempty"` CallbackArgs string `json:"CallbackArgs,omitempty"` }
type TemplateParamItem ¶
type VEdit ¶
func NewInstance ¶
func NewInstance() *VEdit
func (*VEdit) GetDirectEditResult ¶
func (e *VEdit) GetDirectEditResult(request *GetDirectEditResultRequest) (*GetDirectEditResultResponse, error)
func (*VEdit) SubmitDirectEditTaskAsync ¶
func (e *VEdit) SubmitDirectEditTaskAsync(request *SubmitDirectEditTaskRequest) (*SubmitDirectEditTaskAsyncResponse, error)
func (*VEdit) SubmitTemplateTaskAsync ¶
func (e *VEdit) SubmitTemplateTaskAsync(request *SubmitTemplateTaskRequest) (*SubmitTemplateTaskAsyncResponse, error)
Click to show internal directories.
Click to hide internal directories.